initial time; default = 0
update interval in ms; default = 100
Readonly
timeRef
with the number of elapsed integer seconds.
Can be freely updated to any desired integer value while running or paused, either directly or through reset.
The fractional time (i.e. sub-second elapsed time) is not visible but maintained internally. It's important to note that this is retained during a pause. (e.g. if stopped at 3.5 seconds, the timer will reach 4 seconds only half a second after being resumed). One exception is when the user updates the ref value while paused, the fraction is reset to 0.
Manages a reactive time value in seconds. Not recommended for use cases requiring high precision, custom timing logic is likely more suitable for that!