Files
30-seconds-of-code/node_modules/convert-hrtime/readme.md
2019-08-20 15:52:05 +02:00

612 B

convert-hrtime Build Status

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

Install

$ npm install --save 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