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

Function repeat

Lib/timeit.py:248–251  ·  view source on GitHub ↗

Convenience function to create Timer object and call repeat method.

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

Source from the content-addressed store, hash-verified

246
247
248def repeat(stmt="pass", setup="pass", timer=default_timer,
249 repeat=default_repeat, number=default_number, globals=None):
250 """Convenience function to create Timer object and call repeat method."""
251 return Timer(stmt, setup, timer, globals).repeat(repeat, number)
252
253
254def main(args=None, *, _wrap_timer=None):

Callers 4

itermonthdaysMethod · 0.70
harmonic_meanFunction · 0.70
samplesMethod · 0.70
_group_lengthsFunction · 0.70

Calls 2

TimerClass · 0.70
repeatMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…