MCPcopy Index your code
hub / github.com/RustPython/RustPython / timeit

Function timeit

Lib/timeit.py:231–234  ·  view source on GitHub ↗

Convenience function to create Timer object and call timeit method.

(stmt="pass", setup="pass", timer=default_timer,
           number=default_number, globals=None)

Source from the content-addressed store, hash-verified

229
230
231def timeit(stmt="pass", setup="pass", timer=default_timer,
232 number=default_number, globals=None):
233 """Convenience function to create Timer object and call timeit method."""
234 return Timer(stmt, setup, timer, globals).timeit(number)
235
236
237def repeat(stmt="pass", setup="pass", timer=default_timer,

Callers

nothing calls this directly

Calls 2

TimerClass · 0.70
timeitMethod · 0.45

Tested by

no test coverage detected