PEP 418: Mention an use case for truly monotonic clock
This commit is contained in:
parent
6bccbeeb21
commit
d0b769260e
|
@ -26,7 +26,7 @@ Use cases:
|
||||||
* Implement a timeout: use monotonic clock, or fallback to the clock with
|
* Implement a timeout: use monotonic clock, or fallback to the clock with
|
||||||
the highest resolution. time.steady()
|
the highest resolution. time.steady()
|
||||||
* Benchmark and profiling: time.steady()
|
* Benchmark and profiling: time.steady()
|
||||||
* Truly monotonic clock: ?
|
* Event scheduler: time.monotonic()
|
||||||
|
|
||||||
time.steady() tries to use a monotonic clock, but it falls back to a
|
time.steady() tries to use a monotonic clock, but it falls back to a
|
||||||
non-monotonic clock if no monotonic clock is available or if reading a
|
non-monotonic clock if no monotonic clock is available or if reading a
|
||||||
|
|
Loading…
Reference in New Issue