MCPcopy Index your code
hub / github.com/ipython/ipython / timing

Function timing

IPython/utils/timing.py:129–135  ·  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: Callable[..., Any], *args: Any, **kw: Any)

Source from the content-addressed store, hash-verified

127
128
129def timing(func: Callable[..., Any], *args: Any, **kw: Any) -> float:
130 """timing(func,*args,**kw) -> t_total
131
132 Execute a function once, return the elapsed total CPU time in
133 seconds. This is just the first value in timings_out()."""
134
135 return timings_out(1,func,*args,**kw)[0]
136

Callers

nothing calls this directly

Calls 1

timings_outFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…