microseconds

Platform and version requirements: JVM (1.3), JS (1.3), Native (1.3)
@ExperimentalTime @DeprecatedSinceKotlin("1.5") val Int.microseconds: Duration
Deprecated: Use 'Int.microseconds' extension property from Duration.Companion instead.

Returns a Duration equal to this Int number of microseconds.

Platform and version requirements: JVM (1.3), JS (1.3), Native (1.3)
@ExperimentalTime @DeprecatedSinceKotlin("1.5") val Long.microseconds: Duration
Deprecated: Use 'Long.microseconds' extension property from Duration.Companion instead.

Returns a Duration equal to this Long number of microseconds.

Platform and version requirements: JVM (1.3), JS (1.3), Native (1.3)
@ExperimentalTime @DeprecatedSinceKotlin("1.5") val Double.microseconds: Duration
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.

© 2010–2021 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.time/microseconds.html