[issue41303] perf_counter result does not count system sleep time in Mac OS

Rishav Kundu report at bugs.python.org
Thu Aug 6 11:41:25 EDT 2020


Rishav Kundu <rk at rishav.io> added the comment:

While I agree that the behavior of perf_counter should be consistent across macOS/Linux and Windows wrt system suspend, you can already access those clocks by using time.clock_gettime [1] with appropriate clock IDs (CLOCK_MONOTONIC_RAW on macOS and CLOCK_BOOTTIME on Linux)

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41303>
_______________________________________


More information about the Python-bugs-list mailing list