microseconds

Common
JVM
JS
Native
1.3
@ExperimentalTime @DeprecatedSinceKotlin("1.5", "1.8", "1.9") val Int.microseconds: Duration
(source)
Deprecated: Use 'Int.microseconds' extension property from Duration.Companion instead.

Returns a Duration equal to this Int number of microseconds.

Common
JVM
JS
Native
1.3
@ExperimentalTime @DeprecatedSinceKotlin("1.5", "1.8", "1.9") val Long.microseconds: Duration
(source)
Deprecated: Use 'Long.microseconds' extension property from Duration.Companion instead.

Returns a Duration equal to this Long number of microseconds.

Common
JVM
JS
Native
1.3
@ExperimentalTime @DeprecatedSinceKotlin("1.5", "1.8", "1.9") val Double.microseconds: Duration
(source)
Deprecated: Use 'Double.microseconds' extension property from Duration.Companion instead.

Returns a Duration equal to this Double number of microseconds.

Exceptions

IllegalArgumentException - if this Double value is NaN.