just-a-timer
v1.0.1
Published
Simplest timer ever for JavaScript
Readme
Just-A-Timer
Let's keep it simple.
Import the simple-timer module to your project:
~$ npm install just-a-timer --saveImport the simple-timer module to your code:
var Timer = require("just-a-timer");Create a new instance of the timer:
var mytimer = new Timer();Get the time that has passed since the timer was created:
console.log(mytimer.time());If you need to reset the timer, you can do it like:
mytimer.reset()
That is all. Simple?
