[docs] [issue14318] clarify "may not" in time.steady docs

STINNER Victor report at bugs.python.org
Mon Mar 19 13:21:53 CET 2012

STINNER Victor <victor.stinner at gmail.com> added the comment:

> Does "may not" mean that the user isn't allowed to adjust it,
> or that they system won't always have adjusted it?

It depends on which clock is used.

 - clock_gettime(CLOCK_MONOTONIC_RAW) cannot be adjusted
 - clock_gettime(CLOCK_MONOTONIC) can be adjusted by NTP (only its speed, no forward or backward jump)
 - I don't think that QueryPerformanceCounter() can be adjusted
 - gettimeofday(), ftime() and time() are the system clock and can be changed manually by the system administrator or automatically by NTP (maybe with a jump, forward or backward)
 - clock() is used on Windows if QueryPerformanceFrequency failed. I donk't know if it can be ajdusted

It is important to mention that time.steady() may be adjusted in some cases.


Python tracker <report at bugs.python.org>

More information about the docs mailing list