MCPcopy Create free account
hub / github.com/ipython/ipython / timings

Function timings

IPython/utils/timing.py:99–106  ·  view source on GitHub ↗

timings(reps,func,*args,**kw) -> (t_total,t_per_call) Execute a function reps times, return a tuple with the elapsed total CPU time in seconds and the time per call. These are just the first two values in timings_out().

(reps,func,*args,**kw)

Source from the content-addressed store, hash-verified

97
98
99def timings(reps,func,*args,**kw):
100 """timings(reps,func,*args,**kw) -> (t_total,t_per_call)
101
102 Execute a function reps times, return a tuple with the elapsed total CPU
103 time in seconds and the time per call. These are just the first two values
104 in timings_out()."""
105
106 return timings_out(reps,func,*args,**kw)[0:2]
107
108
109def timing(func,*args,**kw):

Callers

nothing calls this directly

Calls 1

timings_outFunction · 0.85

Tested by

no test coverage detected