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

Function callback

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

Source from the content-addressed store, hash-verified

337 callback = None
338 if verbose:
339 def callback(number, time_taken):
340 msg = "{num} loop{s} -> {secs:.{prec}g} secs"
341 plural = (number != 1)
342 print(msg.format(num=number, s='s' if plural else '',
343 secs=time_taken, prec=precision))
344 try:
345 number, _ = t.autorange(callback, target_time)
346 except:

Callers 1

autorangeMethod · 0.70

Calls 1

formatMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…