AbstractDoubleTimeSource
abstract class AbstractDoubleTimeSource(val unit: DurationUnit) : TimeSource.WithComparableMarks(source)
Deprecated
Using AbstractDoubleTimeSource is no longer recommended, use AbstractLongTimeSource instead.
An abstract class used to implement time sources that return their readings as Double values in the specified unit.
Since Kotlin
1.3Properties
Functions
Link copied to clipboard
Marks a point in time on this time source.
Since Kotlin 1.3
Link copied to clipboard
Executes the given function block and returns the duration of the 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 the elapsed time interval.
Since Kotlin 1.9