[issue42107] Monotonic time on macOS 10.12+ should use mach_continuous_time()

2020-10-21 Thread Ronald Oussoren
Ronald Oussoren added the comment: See also #41303, which discusses using mach_continuous_time in another context. If using a different clock is necessary I'd prefer to use clock_gettime(CLOCK_MONOTONIC_RAW) instead of mach_continuous_time(), as the former is a more cross-platform API. BTW.

[issue42107] Monotonic time on macOS 10.12+ should use mach_continuous_time()

2020-10-21 Thread Ned Deily
Change by Ned Deily : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue42107] Monotonic time on macOS 10.12+ should use mach_continuous_time()

2020-10-21 Thread Seth Junot
New submission from Seth Junot : 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