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

Rishav Kundu report at bugs.python.org
Thu Aug 6 11:57:26 EDT 2020


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

> perf_counter behavior during system suspend is undefined

Does the same apply for time.monotonic? I would argue that the difference in behavior between Linux/macOS and Windows is unreasonable; given that time.monotonic exists for measuring time intervals (which are not necessarily required to be of short duration – unlike perf_counter).

----------

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


More information about the Python-bugs-list mailing list