Try the revamped Kotlin docs design →
Try the revamped Kotlin docs design!
microseconds
@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.
@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.
@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
.