← TechnologyThe essentials of

Time.monotonic: measuring an interval without calendar time

Publisher: ResumeMaker • 1 source

Published: 22 Oct 2026 16:11 · Updated: 22 Oct 2026 16:11

AI source check: 22 Oct 2026 14:04. This is not editorial approval.

In a few sentences

In brief

time.monotonic() supplies a clock that does not move backwards because the system clock is adjusted. The useful quantity is the difference between readings, not their presentation as a date.

Useful to know

time.monotonic() supplies a clock that does not move backwards because the system clock is adjusted. The useful quantity is the difference between readings, not their presentation as a date. [1]

Record a starting value and subtract it from the ending value. For a network operation, wait for actual completion. Taking the second reading immediately after starting measures startup rather than the whole download.

Sources

For further detail and to check the information:

  1. [1] time — Time access and conversions — Python 3.12.15 documentation ↗