Monotonic

Common
JVM
JS
Native
1.0
object Monotonic : WithComparableMarks
(source)

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.

Types

Common
JVM
JS
Native
1.9

ValueTimeMark

A specialized kotlin.time.TimeMark returned by TimeSource.Monotonic time source.

class ValueTimeMark : ComparableTimeMark

Functions

Common
JVM
JS
Native
1.0

markNow

Marks a point in time on this time source.

fun markNow(): ValueTimeMark
Common
JVM
JS
Native
1.0

toString

Returns a string representation of the object.

fun toString(): String