times (original) (raw)

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.6


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

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

The operation may involve rounding when the result cannot be represented exactly with a Double number.

Since Kotlin

1.6

Throws

IllegalArgumentException

if the operation results in a NaN value.