TimedValue

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

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

Since Kotlin

1.3

Constructors

TimedValue
Link copied to clipboard
fun <T> TimedValue(value: T, duration: Duration)

Properties

duration
Link copied to clipboard
val duration: Duration

the time elapsed to execute the action.

value
Link copied to clipboard
val value: T

the result of the action.