DoubleTime

This class is meant to provide a reasonably fast time implementation. Should be suitable for most usages, but it inherits the problem of the loss of precision of double numbers when comparing big numbers with low numbers. It could become a real problem with long simulations.

Constructors

Link copied to clipboard
constructor()
Default empty constructor, builds a DoubleTime with value 0.
constructor(val: Double)
Builds a new DoubleTime starting from the specified value.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val ZERO: Time

Functions

Link copied to clipboard
open fun compareTo(o: Time): Int
Link copied to clipboard
open fun equals(obj: Any): Boolean
Link copied to clipboard
open fun hashCode(): Int
Link copied to clipboard
open fun isInfinite(): Boolean
Link copied to clipboard
@Nonnull
open fun minus(dt: Time): Time
Link copied to clipboard
@Nonnull
open fun plus(dt: Time): DoubleTime
Link copied to clipboard
@Nonnull
open fun times(var: Double): Time
Link copied to clipboard
open fun toDouble(): Double
Link copied to clipboard
Link copied to clipboard
open fun toString(): String