A = 1
B = 2

def foo(n, m):
    pass
for i in range(20):
    pass
import timeit
t = timeit.Timer(stmt='test.foo(test.A, test.B)', setup='import test')
print(t.timeit(5))
how to pass parameters of a function when using timeit.Timer()