Lines Matching refs:setup
100 def __init__(self, stmt="pass", setup="pass", timer=default_timer, argument
107 if isinstance(setup, str):
109 compile(setup, dummy_src_name, "exec")
110 stmtprefix = setup + '\n'
111 setup = reindent(setup, 4)
112 elif callable(setup):
113 local_ns['_setup'] = setup
116 setup = '_setup()'
129 src = template.format(stmt=stmt, setup=setup, init=init)
229 def timeit(stmt="pass", setup="pass", timer=default_timer, argument
232 return Timer(stmt, setup, timer, globals).timeit(number)
234 def repeat(stmt="pass", setup="pass", timer=default_timer, argument
237 return Timer(stmt, setup, timer, globals).repeat(repeat, number)
272 setup = []
282 setup.append(a)
303 setup = "\n".join(setup) or "pass"
313 t = Timer(stmt, setup, timer)