LongNanoseconds

inline class LongNanoseconds(value: Long) : Comparable<LongNanoseconds>

A number of nanoseconds.

Constructors

LongNanoseconds
Link copied to clipboard
common
fun LongNanoseconds(value: Long)

Types

Companion
Link copied to clipboard
common
object Companion

Functions

compareTo
Link copied to clipboard
common
open operator override fun compareTo(other: LongNanoseconds): Int
div
Link copied to clipboard
common
operator fun div(scalar: Int): LongNanoseconds
Divides this duration by a scalar value.
operator fun div(scalar: Long): LongNanoseconds
Divides this duration by a scalar value.
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
fun isNegative(): Boolean
Checks if this duration is negative.
isPositive
Link copied to clipboard
common
fun isPositive(): Boolean
Checks if this duration is positive.
isZero
Link copied to clipboard
common
fun isZero(): Boolean
Checks if this duration is zero.
minus
Link copied to clipboard
common
operator fun minus(days: IntDays): LongNanoseconds
operator fun minus(hours: IntHours): LongNanoseconds
operator fun minus(microseconds: IntMicroseconds): LongNanoseconds
operator fun minus(milliseconds: IntMilliseconds): LongNanoseconds
operator fun minus(minutes: IntMinutes): LongNanoseconds
operator fun minus(nanoseconds: IntNanoseconds): LongNanoseconds
operator fun minus(seconds: IntSeconds): LongNanoseconds
operator fun minus(days: LongDays): LongNanoseconds
operator fun minus(hours: LongHours): LongNanoseconds
operator fun minus(microseconds: LongMicroseconds): LongNanoseconds
operator fun minus(milliseconds: LongMilliseconds): LongNanoseconds
operator fun minus(minutes: LongMinutes): LongNanoseconds
operator fun minus(nanoseconds: LongNanoseconds): LongNanoseconds
operator fun minus(seconds: LongSeconds): LongNanoseconds
plus
Link copied to clipboard
common
operator fun plus(days: IntDays): LongNanoseconds
operator fun plus(hours: IntHours): LongNanoseconds
operator fun plus(microseconds: IntMicroseconds): LongNanoseconds
operator fun plus(milliseconds: IntMilliseconds): LongNanoseconds
operator fun plus(minutes: IntMinutes): LongNanoseconds
operator fun plus(nanoseconds: IntNanoseconds): LongNanoseconds
operator fun plus(seconds: IntSeconds): LongNanoseconds
operator fun plus(days: LongDays): LongNanoseconds
operator fun plus(hours: LongHours): LongNanoseconds
operator fun plus(microseconds: LongMicroseconds): LongNanoseconds
operator fun plus(milliseconds: LongMilliseconds): LongNanoseconds
operator fun plus(minutes: LongMinutes): LongNanoseconds
operator fun plus(nanoseconds: LongNanoseconds): LongNanoseconds
operator fun plus(seconds: LongSeconds): LongNanoseconds
rem
Link copied to clipboard
common
operator fun rem(scalar: Int): LongNanoseconds
operator fun rem(scalar: Long): LongNanoseconds
times
Link copied to clipboard
common
operator fun times(scalar: Int): LongNanoseconds
Multiplies this duration by a scalar value.
operator fun times(scalar: Long): LongNanoseconds
Multiplies this duration by a scalar value.
toComponents
Link copied to clipboard
common
inline fun <T> toComponents(action: (microseconds: LongMicroseconds, nanoseconds: IntNanoseconds) -> T): T
inline fun <T> toComponents(action: (milliseconds: LongMilliseconds, microseconds: IntMicroseconds, nanoseconds: IntNanoseconds) -> T): T
inline fun <T> toComponents(action: (seconds: LongSeconds, milliseconds: IntMilliseconds, microseconds: IntMicroseconds, nanoseconds: IntNanoseconds) -> T): T
inline fun <T> toComponents(action: (minutes: LongMinutes, seconds: IntSeconds, milliseconds: IntMilliseconds, microseconds: IntMicroseconds, nanoseconds: IntNanoseconds) -> T): T
inline fun <T> toComponents(action: (hours: LongHours, minutes: IntMinutes, seconds: IntSeconds, milliseconds: IntMilliseconds, microseconds: IntMicroseconds, nanoseconds: IntNanoseconds) -> T): T
inline fun <T> toComponents(action: (days: LongDays, hours: IntHours, minutes: IntMinutes, seconds: IntSeconds, milliseconds: IntMilliseconds, microseconds: IntMicroseconds, nanoseconds: IntNanoseconds) -> T): T
toInt
Link copied to clipboard
common
fun toInt(): Int
Converts this duration to an Int value.
toIntNanoseconds
Link copied to clipboard
common
fun toIntNanoseconds(): IntNanoseconds
Converts this duration to IntNanoseconds.
toKotlinDuration
Link copied to clipboard
common
fun toKotlinDuration(): Duration
Converts this duration to a kotlin.time.Duration.
toString
Link copied to clipboard
common
open override fun toString(): String
Converts this duration to an ISO-8601 time interval representation.
unaryMinus
Link copied to clipboard
common
operator fun unaryMinus(): LongNanoseconds
Negates this duration.

Properties

absoluteValue
Link copied to clipboard
common
val absoluteValue: LongNanoseconds
The absolute value of this duration.
inDays
Link copied to clipboard
common
val inDays: LongDays
Converts this duration to the number of whole days.
inHours
Link copied to clipboard
common
val inHours: LongHours
Converts this duration to the number of whole hours.
inMicroseconds
Link copied to clipboard
common
val inMicroseconds: LongMicroseconds
Converts this duration to the number of whole microseconds.
inMilliseconds
Link copied to clipboard
common
val inMilliseconds: LongMilliseconds
Converts this duration to the number of whole milliseconds.
inMinutes
Link copied to clipboard
common
val inMinutes: LongMinutes
Converts this duration to the number of whole minutes.
inSeconds
Link copied to clipboard
common
val inSeconds: LongSeconds
Converts this duration to the number of whole seconds.
value
Link copied to clipboard
common
val value: Long
The underlying value.

Extensions

asDuration
Link copied to clipboard
common
fun LongNanoseconds.asDuration(): Duration
toJavaDuration
Link copied to clipboard
fun LongNanoseconds.toJavaDuration(): Duration
Converts this duration to an equivalent Java Duration.
toNSTimeInterval
Link copied to clipboard
darwin
fun LongNanoseconds.toNSTimeInterval(): <ERROR CLASS>
Converts this duration to an equivalent NSTimeInterval.