microseconds

fun microseconds(value: Int): Duration
fun microseconds(value: Long): Duration

Returns a Duration representing the specified value number of microseconds.

Since Kotlin

1.5

fun microseconds(value: Double): Duration

Returns a Duration representing the specified value number of microseconds.

Since Kotlin

1.5

Throws

if the provided Doublevalue is NaN.