AbstractLongTimeSource
abstract class AbstractLongTimeSource(val unit: DurationUnit) : TimeSource.WithComparableMarks(source)
An abstract class used to implement time sources that return their readings as Long values in the specified unit.
Time marks returned by this time source can be compared for difference with other time marks obtained from the same time source.
Since Kotlin
1.9Inheritors
Properties
Functions
Link copied to clipboard
Marks a point in time on this time source.
Since Kotlin 1.9
Link copied to clipboard
Executes the given function block and returns the duration of elapsed time interval.
Since Kotlin 1.9
Link copied to clipboard
Executes the given function block and returns an instance of TimedValue class, containing both the result of function execution and the duration of elapsed time interval.
Since Kotlin 1.9