This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author sjunot
Recipients ned.deily, ronaldoussoren, sjunot
Date 2020-10-21.10:37:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1603276645.14.0.842497391602.issue42107@roundup.psfhosted.org>
In-reply-to
Content
This blog post describes an issue with Apple's "CLOCK_UPTIME_RAW" where the clock is reset after a system that hibernates:

https://rachelbythebay.com/w/2020/10/20/ticktock/

According to Apple's documentation, CLOCK_UPTIME_RAW corresponds to mach_absolute_time():

https://developer.apple.com/documentation/kernel/1462446-mach_absolute_time

CPython is using mach_absolute_time() for its time.monotonic() implementation:

https://github.com/python/cpython/blob/f660567/Python/pytime.c#L7

time.monotonic() ought to be backed by the more appropriate mach_continuous_time() ("CLOCK_MONOTONIC_RAW"). Note it was introduced in macOS 10.12+:

https://developer.apple.com/documentation/kernel/1646199-mach_continuous_time
History
Date User Action Args
2020-10-21 10:37:25sjunotsetrecipients: + sjunot, ronaldoussoren, ned.deily
2020-10-21 10:37:25sjunotsetmessageid: <1603276645.14.0.842497391602.issue42107@roundup.psfhosted.org>
2020-10-21 10:37:25sjunotlinkissue42107 messages
2020-10-21 10:37:25sjunotcreate