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

Rishav Kundu report at bugs.python.org
Tue Aug 4 14:56:25 EDT 2020


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

Wouldn’t using mach_continuous_time (and its equivalents on other platforms) wherever possible be preferable?

Or would a different API that distinguishes between clocks that track during suspend versus those that not be a better idea? Given that at least macOS and Linux offer both variants (not sure about Windows)

----------

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


More information about the Python-bugs-list mailing list