You are viewing an older version (9.15.0).Go to latest (9.17.0)
{ } Raw JSON

bundles / IPython 9.15.0 / IPython / utils / timing / clock

function

IPython.utils.timing:clock

source: /dev/ipython/IPython/utils/timing.py:52

Signature

def clock()

Summary

clock() -> floating point number

Extended Summary

Return the TOTAL USER+SYSTEM CPU time in seconds since the start of the process. This is done via a call to resource.getrusage, so it avoids the wraparound problems in time.clock().

Aliases

  • IPython.utils.timing.clock