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

Function clock2

IPython/utils/timing.py:62–66  ·  view source on GitHub ↗

clock2() -> (t_user,t_system) Similar to clock(), but return a tuple of user/system times.

()

Source from the content-addressed store, hash-verified

60 return u+s
61
62 def clock2() -> tuple[float, float]:
63 """clock2() -> (t_user,t_system)
64
65 Similar to clock(), but return a tuple of user/system times."""
66 return resource.getrusage(resource.RUSAGE_SELF)[:2]
67
68else:
69 # There is no distinction of user/system time under windows, so we just use

Callers 2

_run_with_timingMethod · 0.90
timeMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…