frost.time

Class Timer

    └ Object

A high-resolution timer which measures time either from the epoch (midnight UTC on January 1st, 1970) or between two events.

Source Code:
View Source

Initializer Summary

init()
Creates a Timer which initially measures time relative to the epoch.
Inherited Fields:

Instance Method Summary

elapsed():Real64
Reports the time elapsed in seconds.
reset()
Resets the timer so that subsequent calls to elapsed() will be relative to this point in time.

Initializers

init ()

Creates a Timer which initially measures time relative to the epoch.

Instance Methods

method elapsed ():Real64

Reports the time elapsed in seconds. If this timer has been reset(), reports the number of seconds since the last reset, otherwise reports the number of seconds since the epoch.

method reset ()

Resets the timer so that subsequent calls to elapsed() will be relative to this point in time.