Get unlimited public & private packages + team-based management with npm Teams.Learn more »

convert-hrtime

3.0.0 • Public • Published

convert-hrtime Build Status

Convert the result of process.hrtime() to seconds, milliseconds, nanoseconds

Install

$ npm install convert-hrtime

Usage

const convertHrtime = require('convert-hrtime');
 
convertHrtime(process.hrtime(process.hrtime()));
//=> {seconds: 0.000002399, milliseconds: 0.002399, nanoseconds: 2399}

License

MIT © Sindre Sorhus

Install

npm i convert-hrtime

DownloadsWeekly Downloads

298,715

Version

3.0.0

License

MIT

Unpacked Size

3.27 kB

Total Files

5

Last publish

Collaborators

  • avatar