times

inline operator fun Int.times(duration: Duration): Duration(source)

Returns a duration whose value is the specified duration value multiplied by this number.

Since Kotlin

1.3

inline operator fun Double.times(duration: Duration): Duration(source)

Returns a duration whose value is the specified duration value multiplied by this number.

Since Kotlin

1.3

Throws

if the operation results in a NaN value.