Class for keeping track of time.
Constructs a new clock.
autoStart
Whether to automatically start the clock when getDelta() is called for the first time.
Default is true.
Deprecated: since r183.
If set to true, the clock starts automatically when getDelta() is called for the first time.
Default is true.
Keeps track of the total time that the clock has been running.
Default is 0.
Holds the time at which the clock's start(), getElapsedTime() or getDelta() methods were last called.
Default is 0.
Whether the clock is running or not.
Default is true.
Holds the time at which the clock's start() method was last called.
Default is 0.
Returns the delta time in seconds.
Returns: The delta time.
Returns the elapsed time in seconds.
Returns: The elapsed time.
Starts the clock. When autoStart is set to true, the method is automatically called by the class.
Stops the clock.