[issue35702] clock_gettime: Add new identifier CLOCK_UPTIME_RAW for Darwin
STINNER Victor
report at bugs.python.org
Thu Jan 10 09:23:23 EST 2019
STINNER Victor <vstinner at redhat.com> added the comment:
> As the behaviour is equivalent, maybe it can be assigned to the existing time.CLOCK_UPTIME funtion.
Nah, in Python we map directly to OS constant and don't try to be smart. It's up to the user of these constants to make their own choice.
Use Python functions for portable behavior: time.monotonic(), time.perf_counter(), etc.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35702>
_______________________________________
More information about the Python-bugs-list
mailing list