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

Function timing

IPython/utils/timing.py:109–115  ·  view source on GitHub ↗

timing(func,*args,**kw) -> t_total Execute a function once, return the elapsed total CPU time in seconds. This is just the first value in timings_out().

(func,*args,**kw)

Source from the content-addressed store, hash-verified

107
108
109def timing(func,*args,**kw):
110 """timing(func,*args,**kw) -> t_total
111
112 Execute a function once, return the elapsed total CPU time in
113 seconds. This is just the first value in timings_out()."""
114
115 return timings_out(1,func,*args,**kw)[0]
116

Callers

nothing calls this directly

Calls 1

timings_outFunction · 0.85

Tested by

no test coverage detected