MCPcopy Index your code
hub / github.com/python/cpython / timeit

Function timeit

Lib/timeit.py:242–245  ·  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

240
241
242def timeit(stmt="pass", setup="pass", timer=default_timer,
243 number=default_number, globals=None):
244 """Convenience function to create Timer object and call timeit method."""
245 return Timer(stmt, setup, timer, globals).timeit(number)
246
247
248def 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

Used in the wild real call sites across dependent graphs

searching dependent graphs…