[New-bugs-announce] [issue35702] clock_gettime: Add new identifier CLOCK_UPTIME_RAW for Darwin
report at bugs.python.org
Thu Jan 10 02:43:37 EST 2019
New submission from Ricardo F <rfraile at rfraile.eu>:
Finally since the release of OSX 10.12 the equivalent from the FreeBSD and OpenBSD "CLOCK_UPTIME" is available on Darwin under the name "CLOCK_UPTIME_RAW":
CLOCK_UPTIME FreeBSD :
Starts at zero when the kernel boots and increments monotonically in SI seconds while the machine is running.
CLOCK_UPTIME OpenBSD :
Time whose absolute value is the time the system has been running and not suspended, providing accurate uptime measurement, both absolute and interval
CLOCK_UPTIME_RAW Darwin :
Clock that increments monotonically, tracking the time since an arbitrary point, unaffected by frequency or time adjustments and not increment while the system is asleep.
It would be useful to have it available on time module  for this platform.
As the behaviour is equivalent, maybe it can be assigned to the existing time.CLOCK_UPTIME funtion.
 - https://www.freebsd.org/cgi/man.cgi?query=clock_gettime
 - https://man.openbsd.org/clock_gettime.2
 - http://www.manpagez.com/man/3/clock_gettime_nsec_np/
 - https://docs.python.org/3/library/time.htm
nosy: ned.deily, rfrail3, ronaldoussoren
title: clock_gettime: Add new identifier CLOCK_UPTIME_RAW for Darwin
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce