Class: AxTimer

AxTimer() → {AxTimer}

new AxTimer() → {AxTimer}

Createa a new timer. Provided time measuring, convenient for continuously occuring events such as in a real time application
Source:
Returns:
Type
AxTimer

Methods

(static) GetAnchor() → {Integer}

Gets the current time stamp, effectively creating an anchor which can be used later to measure the time spent between the measurement and the anchoring
Source:
Returns:
The current time stamp
Type
Integer

(static) GetAnchorTime(anchor) → {Number}

Gets the time spent between the time at which the anchor was taken and the current moment of measuring. The returned value is in seconds
Parameters:
Name Type Description
anchor Integer A time anchor, taken by AxTimer.GetAnchor
Source:
Returns:
The time in seconds, spent between the anchor was taken and the current time.
Type
Number

(static) GetFrequency() → {Integer}

Gets the frequency of the timer. The timer's frequency is its precicion and is measured in ticks per second
Source:
Returns:
The frequency of the timer, denoting its precision
Type
Integer

Reset()

Resets the timer
Source:

Tick()

Performs time measuring routines Meant to be called at each loop of a continuously occurring event, so as to provide information about the timing of the event
Source:

TickOut(time)

Ticks out a given amount of time, forcing the timer to appear as if the given amount of time has passed
Parameters:
Name Type Description
time Number The time in seconds to tick out
Source:

Documentation generated by JSDoc 3.5.3 on Wed Jan 17 2018 17:06:57 GMT+0200 (FLE Standard Time)