MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / timeit

Function timeit

tools/python-3.11.9-amd64/Lib/timeit.py:234–237  ·  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

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

Callers

nothing calls this directly

Calls 2

timeitMethod · 0.80
TimerClass · 0.70

Tested by

no test coverage detected