Have ideas to improve npm?Join in the discussion! »

convert-hrtime
TypeScript icon, indicating that this package has built-in type declarations

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

466,249

Version

3.0.0

License

MIT

Unpacked Size

3.27 kB

Total Files

5

Last publish

Collaborators

  • avatar