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

Function repeat

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

235
236
237def repeat(stmt="pass", setup="pass", timer=default_timer,
238 repeat=default_repeat, number=default_number, globals=None):
239 """Convenience function to create Timer object and call repeat method."""
240 return Timer(stmt, setup, timer, globals).repeat(repeat, number)
241
242
243def main(args=None, *, _wrap_timer=None):

Callers 15

itermonthdaysMethod · 0.85
harmonic_meanFunction · 0.85
samplesMethod · 0.85
_group_lengthsFunction · 0.85
run_testFunction · 0.85
setUpMethod · 0.85
test_compressMethod · 0.85
test_repeatMethod · 0.85
test_tee_del_backwardMethod · 0.85
test_StopIterationMethod · 0.85

Calls 2

TimerClass · 0.70
repeatMethod · 0.45

Tested by 14

run_testFunction · 0.68
setUpMethod · 0.68
test_compressMethod · 0.68
test_repeatMethod · 0.68
test_tee_del_backwardMethod · 0.68
test_StopIterationMethod · 0.68
test_repeatMethod · 0.68
test_tee_recipeMethod · 0.68
test_repeatMethod · 0.68
test_compressMethod · 0.68