IntMicroseconds

A number of microseconds.

inline class IntMicroseconds(value: Int) : Comparable<IntMicroseconds>

Constructors

IntMicroseconds
Link copied to clipboard
common
fun IntMicroseconds(value: Int)

Types

Companion
Link copied to clipboard
common
object Companion

Functions

compareTo
Link copied to clipboard
common
open operator override fun compareTo(other: IntMicroseconds): Int
div
Link copied to clipboard
common

Divides this duration by a scalar value.

operator fun div(scalar: Int): IntMicroseconds
operator fun div(scalar: Long): LongMicroseconds
equals
Link copied to clipboard
common
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open override fun hashCode(): Int
isNegative
Link copied to clipboard
common

Checks if this duration is negative.

fun isNegative(): Boolean
isPositive
Link copied to clipboard
common

Checks if this duration is positive.

fun isPositive(): Boolean
isZero
Link copied to clipboard
common

Checks if this duration is zero.

fun isZero(): Boolean
minus
Link copied to clipboard
common
operator fun minus(nanoseconds: IntNanoseconds): LongNanoseconds
operator fun minus(nanoseconds: LongNanoseconds): LongNanoseconds
operator fun minus(microseconds: IntMicroseconds): LongMicroseconds
operator fun minus(microseconds: LongMicroseconds): LongMicroseconds
operator fun minus(milliseconds: IntMilliseconds): LongMicroseconds
operator fun minus(milliseconds: LongMilliseconds): LongMicroseconds
operator fun minus(seconds: IntSeconds): LongMicroseconds
operator fun minus(seconds: LongSeconds): LongMicroseconds
operator fun minus(minutes: IntMinutes): LongMicroseconds
operator fun minus(minutes: LongMinutes): LongMicroseconds
operator fun minus(hours: IntHours): LongMicroseconds
operator fun minus(hours: LongHours): LongMicroseconds
operator fun minus(days: IntDays): LongMicroseconds
operator fun minus(days: LongDays): LongMicroseconds
plus
Link copied to clipboard
common
operator fun plus(nanoseconds: IntNanoseconds): LongNanoseconds
operator fun plus(nanoseconds: LongNanoseconds): LongNanoseconds
operator fun plus(microseconds: IntMicroseconds): LongMicroseconds
operator fun plus(microseconds: LongMicroseconds): LongMicroseconds
operator fun plus(milliseconds: IntMilliseconds): LongMicroseconds
operator fun plus(milliseconds: LongMilliseconds): LongMicroseconds
operator fun plus(seconds: IntSeconds): LongMicroseconds
operator fun plus(seconds: LongSeconds): LongMicroseconds
operator fun plus(minutes: IntMinutes): LongMicroseconds
operator fun plus(minutes: LongMinutes): LongMicroseconds
operator fun plus(hours: IntHours): LongMicroseconds
operator fun plus(hours: LongHours): LongMicroseconds
operator fun plus(days: IntDays): LongMicroseconds
operator fun plus(days: LongDays): LongMicroseconds
rem
Link copied to clipboard
common
operator fun rem(scalar: Int): IntMicroseconds
operator fun rem(scalar: Long): LongMicroseconds
times
Link copied to clipboard
common

Multiplies this duration by a scalar value.

operator fun times(scalar: Int): LongMicroseconds
operator fun times(scalar: Long): LongMicroseconds
toComponents
Link copied to clipboard
common
inline fun <T> toComponents(action: (IntMilliseconds, IntMicroseconds) -> T): T
inline fun <T> toComponents(action: (IntSeconds, IntMilliseconds, IntMicroseconds) -> T): T
inline fun <T> toComponents(action: (IntMinutes, IntSeconds, IntMilliseconds, IntMicroseconds) -> T): T
inline fun <T> toComponents(action: (IntHours, IntMinutes, IntSeconds, IntMilliseconds, IntMicroseconds) -> T): T
inline fun <T> toComponents(action: (IntDays, IntHours, IntMinutes, IntSeconds, IntMilliseconds, IntMicroseconds) -> T): T
toKotlinDuration
Link copied to clipboard
common

Converts this duration to a kotlin.time.Duration.

fun toKotlinDuration(): Duration
toLong
Link copied to clipboard
common

Converts this duration to a Long value.

fun toLong(): Long
toLongMicroseconds
Link copied to clipboard
common

Converts this duration to LongMicroseconds.

fun toLongMicroseconds(): LongMicroseconds
toString
Link copied to clipboard
common

Converts this duration to an ISO-8601 time interval representation.

open override fun toString(): String
unaryMinus
Link copied to clipboard
common

Negates this duration.

operator fun unaryMinus(): IntMicroseconds

Properties

absoluteValue
Link copied to clipboard
common

The absolute value of this duration.

val absoluteValue: IntMicroseconds
inDays
Link copied to clipboard
common

Converts this duration to the number of whole days.

val inDays: IntDays
inHours
Link copied to clipboard
common

Converts this duration to the number of whole hours.

val inHours: IntHours
inMilliseconds
Link copied to clipboard
common

Converts this duration to the number of whole milliseconds.

val inMilliseconds: IntMilliseconds
inMinutes
Link copied to clipboard
common

Converts this duration to the number of whole minutes.

val inMinutes: IntMinutes
inNanoseconds
Link copied to clipboard
common

Converts this duration to nanoseconds.

val inNanoseconds: LongNanoseconds
inSeconds
Link copied to clipboard
common

Converts this duration to the number of whole seconds.

val inSeconds: IntSeconds
value
Link copied to clipboard
common

The underlying value.

val value: Int

Extensions

asDuration
Link copied to clipboard
common
fun IntMicroseconds.asDuration(): Duration
toJavaDuration
Link copied to clipboard

Converts this duration to an equivalent Java Duration.

fun IntMicroseconds.toJavaDuration(): Duration
toNSTimeInterval
Link copied to clipboard
darwin

Converts this duration to an equivalent NSTimeInterval.

fun IntMicroseconds.toNSTimeInterval(): <ERROR CLASS>