ID EN
Time

monotonic

Python 3.11

Return the value (in fractional seconds) of a monotonic clock, i.e. a clock that cannot go backwards. The clock is not affected by system clock updates. The reference point of the returned value is undefined, so that only the difference between the results of two calls is valid.

Syntax

PYTHON
time.monotonic() → float

See Also

monotonic_ns() float