Count-up or count-down timer. Can optionally update an html element.
Adds time to the current value in the timer. So for example, if the timer is right now at 4 seconds, and we add 1000 (1 second), it jumps to 5 seconds.
Returns the time it has passed so far, in milliseconds.
Returns the time it has passed so far, in seconds.
Returns a string with the time passed so far.
Stops and resets the count.
Restart the timer.
Resumes the timer with the same settings/values that were set before it was stopped.
Start counting. If no endValue is given, it never stops counting.
endValue are in milliseconds.
endCallback is called when the timer ends (only if an
endValue was provided).
tickCallback is called every second.
Updates the associated html element (if was given) with the current time value.
Generated using TypeDoc