An object used to measure script performance.
|reset()||Resets the clock, also restarting it.|
|stop()||Stops the clock.|
|restart()||Start the clock again, without resetting it.|
|add(other)||Add the duration of another timer to this timer.|
|divide(number)||Divides the current duration by a set value.|
|valid :: boolean [R]||Is this object valid?|
|help() → string||All methods, and properties that this object supports.|
Resets the clock, also restarting it.
Stops the clock.
Start the clock again, without resetting it.
Add the duration of another timer to this timer. Useful to reduce start/stop overhead when accumulating time onto many timers at once.
Divides the current duration by a set value. Useful for calculating the average of many iterations.