time-ms

1.0.0 • Public • Published

time-ms

stable

get the current time in milliseconds, with nanosecond precision

Usage

NPM

var time = require('time-ms');
var start = time();
 
setTimeout(() => {
    var finish = time()
    console.log('took '+(finish-start)+'ms');
    // took 1000.097435ms
}, 1000);

License

MIT, see LICENSE.md for details.

Package Sidebar

Install

npm i time-ms

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • mlrawlings