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

Function callback

Lib/timeit.py:321–325  ·  view source on GitHub ↗
(number, time_taken)

Source from the content-addressed store, hash-verified

319 callback = None
320 if verbose:
321 def callback(number, time_taken):
322 msg = "{num} loop{s} -> {secs:.{prec}g} secs"
323 plural = (number != 1)
324 print(msg.format(num=number, s='s' if plural else '',
325 secs=time_taken, prec=precision))
326 try:
327 number, _ = t.autorange(callback)
328 except:

Callers 1

autorangeMethod · 0.70

Calls 2

printFunction · 0.50
formatMethod · 0.45

Tested by

no test coverage detected