Search code examples
pythonprofiling

Is the result of pyperf in real time or in CPU seconds?


I would assume the output of pyperf is in real time, but I couldn't find confirmation anywhere.


Solution

  • As suggested by @Barmar, the output of

    python3 -m pyperf timeit 'import time; time.sleep(10)' --debug-single-value
    

    is

    10.0 sec
    

    This indicates that it is real time.