Lines Matching refs:stmt
121 def __init__(self, stmt="pass", setup="pass", timer=default_timer): argument
125 if isinstance(stmt, basestring):
129 compile(setup + '\n' + stmt, dummy_src_name, "exec")
131 compile(stmt, dummy_src_name, "exec")
132 stmt = reindent(stmt, 8)
135 src = template % {'stmt': stmt, 'setup': setup, 'init': ''}
137 src = template % {'stmt': stmt, 'setup': '_setup()',
146 elif hasattr(stmt, '__call__'):
154 self.inner = _template_func(setup, stmt)
234 def timeit(stmt="pass", setup="pass", timer=default_timer, argument
237 return Timer(stmt, setup, timer).timeit(number)
239 def repeat(stmt="pass", setup="pass", timer=default_timer, argument
242 return Timer(stmt, setup, timer).repeat(repeat, number)
273 stmt = "\n".join(args) or "pass"
307 t = Timer(stmt, setup, timer)