Javascript Library.
Commands 0 |
---|
Added in v 1.0.0
Start timer.
Start the created timer.
As in v 1.0.0 All examples bellow uses Timer object.
var timer = new _z.timer(function);
Please see: Timer object
_z.timer.start();
Returns: Object Timer object
Make sure that _z.timer.hold = false.
// execute every 1 second
var timer1 = new _z.timer(()=>{ document.title = fns.time('s') + ":" + fns.time('m'); }, 1000);
timer1.isRunning; // false
timer1.isReady(); // true
timer1.start();
timer1.isReady(); // false
timer1.isRunning; // true