UnderZ

Javascript Library.

Added in v 1.0.0

Stop timer.

Stop the created timer.


As in v 1.0.0 All examples bellow uses Timer object.

Create new timer object:

var timer = new _z.timer(function);

Please see: Timer object


Stop timer

_z.timer.stop();

Returns: Object Timer object


Examples

// 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