This class provides a simple means for storing and calculating time quantities.

Hierarchy

Constructors

Properties

_quantity: number = 0
_total: default<Readonly<TimeMeasurement>>

Accessors

  • get direction(): number
  • +1, 0, or -1 depending on the time direction.

    Returns

    Returns number

Methods

  • Compares this instance against any other time quantity instance and return true if the amount of time is the same.

    Returns

    Parameters

    Returns boolean

  • Returns the total amount of time measured in the requested TimeUnit.

    Returns

    Parameters

    Returns number

Generated using TypeDoc