Monotonic
The most precise time source available in the platform.
This time source returns its readings from a source of monotonic time when it is available in a target platform, and resorts to a non-monotonic time source otherwise.
The function markNow of this time source returns the specialized ValueTimeMark that is an inline value class wrapping a platform-dependent time reading value.
Since Kotlin
1.9Types
A specialized kotlin.time.TimeMark returned by TimeSource.Monotonic time source.
Functions
Marks a point in time on this time source.
Executes the given function block and returns the duration of the elapsed time interval.
Executes the given function block and returns an instance of TimedValue class, containing both the result of function execution and the duration of the elapsed time interval.