TimedValue

data class TimedValue<T>(val value: T, val duration: Duration)(source)

Data class representing a result of executing an action, along with the duration of the elapsed time interval.

Since Kotlin

1.9

Constructors

Link copied to clipboard
constructor(value: T, duration: Duration)

Properties

Link copied to clipboard

the time elapsed to execute the action.

Since Kotlin 1.9
Link copied to clipboard
val value: T

the result of the action.

Since Kotlin 1.9