epochjs

2.0.0 • Public • Published

epochjs version 2.0.0

Track the elapsed time since a certain point, like the start of a node script.

NPM

Installation:

Run npm install epochjs to install from the NPM registry.

Examples:

var Epochjs = require('epochjs'),
    epochjs = new Epochjs();
 
// Call start() to set (or reset) the start time.
// start() is called at the start of the script by default.
epochjs.start();
 
// ...add your javascript code here
 
// when ready to see the amount of time that has ellapsed call secElapsed()
console.log(epochjs.secElapsed() + ' time has ellapsed');
 
// or even simpler call log()
// the following will output to the console "5.11 database updated" where 
// 5.11 is the amount of time that has ellapsed since start().
epochjs.log('database updated');
 

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.0
    29
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.0.0
    29
  • 1.0.3
    0
  • 1.0.2
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i epochjs

Weekly Downloads

29

Version

2.0.0

License

MIT

Last publish

Collaborators

  • bchr02