Javascript Library.
Commands 0 |
---|
Added in v 1.0.0
Stop 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.stop();
Returns: Object Timer object
// 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
timer1.stop();
timer1.isRunning; // false
timer1.isReady(); // true