FastDuration

inline class FastDuration(ms: Double) : Comparable<FastDuration>

Analogous to Duration but doesn't allocate on the JS target. Important when used intensively in JS code. For example in KorGE.

Constructors

Link copied to clipboard
constructor(ms: Double)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val fastMicroseconds: Double
Link copied to clipboard
val fastMilliseconds: Double
Link copied to clipboard
val fastNanoseconds: Double
Link copied to clipboard
val fastSeconds: Double
Link copied to clipboard
val isNegativeInfinity: Boolean
Link copied to clipboard
val isNil: Boolean
Link copied to clipboard
val FastDuration.isNil: Boolean

Return true if Duration.NIL

Link copied to clipboard
val isPositiveInfinity: Boolean
Link copied to clipboard
val microseconds: Double
Link copied to clipboard
val milliseconds: Double
Link copied to clipboard
val nanoseconds: Double
Link copied to clipboard
val seconds: Double
Link copied to clipboard
val FastDuration.slow: Duration

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open operator override fun compareTo(other: FastDuration): Int
operator fun compareTo(other: Duration): Int
Link copied to clipboard
operator fun div(other: FastDuration): Double
operator fun div(scale: Double): FastDuration
inline operator fun div(scale: Number): FastDuration
operator fun div(other: Duration): Double
Link copied to clipboard
operator fun minus(that: FastDuration): FastDuration
operator fun minus(other: Duration): FastDuration
Link copied to clipboard
operator fun plus(that: FastDuration): FastDuration
operator fun plus(other: Duration): FastDuration
Link copied to clipboard
operator fun times(scale: Double): FastDuration
inline operator fun times(scale: Number): FastDuration
operator fun times(other: Duration): FastDuration
Link copied to clipboard
fun FastDuration.toDuration(): Duration
Link copied to clipboard
operator fun unaryMinus(): FastDuration
Link copied to clipboard
operator fun unaryPlus(): FastDuration