function sleep
Blocks the current thread for
ms milliseconds.
Returns None. The sleep is synchronous; the calling task’s thread
is parked for the full duration.
Examples
function sleep_iter
Returns an infinite iterator that yields a monotonically increasing integer every
ms milliseconds.
Each call to next sleeps for ms milliseconds, then returns the
next tick (starting at 0). Use break to stop iteration.
Examples
function monotonic
Returns a monotonically non-decreasing time in seconds as a float.
The reference epoch is fixed at process start, so values are only
meaningful relative to other
monotonic() readings within the same
process. Suitable for measuring elapsed time.
Examples
function monotonic_ns
Returns a monotonically non-decreasing time in nanoseconds as an int.
The reference epoch is fixed at process start, so values are only
meaningful relative to other
monotonic_ns() readings within the
same process. Higher precision than monotonic().
Examples
property time

