A simple system for keeping track of time in the game.

Static variables

staticread onlycurrent:Float

The current time, in seconds.

staticread onlycurrentMS:Float

The current time, in milliseconds.

staticread onlyelapsed:Float

Time since the last frame, in seconds.

staticread onlyelapsedMS:Float = 0

Time since the last frame, in milliseconds.

Static methods

static_start ():Void

Notifies this system that the game has been started. Note: Do not call directly.

static_update ():Void

Updates the elapsed time after a frame is complete. Note: Do not call directly!