A human-readable timer
var clock = new Clock();
clock.setInterval('1h 10m 15s 300ms');
clock.setTicker(function() {
// ...
});
clock.start();
// stops the ticker
clock.stop();
var clock = new Clock();
clock.setInterval('1h 10m 15s 300ms');
clock.setTicker(function() {
// ...
});
clock.start();
// stops the ticker
clock.stop();