Monotonic
Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)
object Monotonic : TimeSource
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
Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)
ValueTimeMark
class ValueTimeMark : TimeMark
Functions
Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)
markNow
Marks a point in time on this time source.
fun markNow(): ValueTimeMark
Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)
toString
Returns a string representation of the object.
fun toString(): String
© 2010–2022 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.time/-time-source/-monotonic/index.html