1.0.1 • Published 6 years ago
just-a-timer v1.0.1
Just-A-Timer
Let's keep it simple.
Import the simple-timer module to your project:
~$ npm install just-a-timer --save
Import 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?