1.0.1 • Published 6 years ago

just-a-timer v1.0.1

Weekly downloads
1
License
ISC
Repository
-
Last release
6 years ago

Just-A-Timer

Let's keep it simple.

  1. Import the simple-timer module to your project:

    ~$ npm install just-a-timer --save

  2. Import the simple-timer module to your code:

    var Timer = require("just-a-timer");

  3. Create a new instance of the timer:

    var mytimer = new Timer();

  4. Get the time that has passed since the timer was created:

    console.log(mytimer.time());

  5. If you need to reset the timer, you can do it like:

    mytimer.reset()

That is all. Simple?