Clock
Object for keeping track of time.
Constructor
autoStart — Automatically start the clock. Default is true.
Properties
If set, starts the clock automatically when the first update is called.
When the clock is running, It holds the start time of the clock.
This counted from the number of milliseconds elapsed since 1 January 1970 00:00:00 UTC.
When the clock is running, It holds the previous time from a update.
This counted from the number of milliseconds elapsed since 1 January 1970 00:00:00 UTC.
When the clock is running, It holds the time elapsed between the start of the clock to the previous update.
This counted from the number of milliseconds elapsed since 1 January 1970 00:00:00 UTC.
This property keeps track whether the clock is running or not.
Methods
Starts clock.
Stops clock.
Get the seconds passed since the clock started.
Get the seconds passed since the last call to this method.
Source
src/core/Clock.js
Edit