hortator

0.0.2 • Public • Published

Hortator

Simple clock that cares about time... but doesn't really care about your business!

"Hortator" is a Latin word which, in the Old Rome, designated the slave runner who was giving rowing beats on the Roman triremes to communicate to the slave rowers the speed the captain wanted.

Usage

var Clock = require("hortator");
 
var clock = new Clock({period: 0.5}); // seconds
 
clock.on("tick", function(tickTime, delay) {
    /* do your business */
});
 
clock.start();
 
// ...
 
clock.stop();

/hortator/

    Package Sidebar

    Install

    npm i hortator

    Weekly Downloads

    0

    Version

    0.0.2

    License

    MIT

    Last publish

    Collaborators

    • pvoisin