microseconds

val Int.microseconds: Duration

Returns a Duration equal to this Int number of microseconds.

Since Kotlin

1.3

val Long.microseconds: Duration

Returns a Duration equal to this Long number of microseconds.

Since Kotlin

1.3

val Double.microseconds: Duration

Returns a Duration equal to this Double number of microseconds.

Since Kotlin

1.3

Throws

if this Double value is NaN.