1.0.0 • Published 5 years ago

difference-hrtime v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

difference-hrtime

Package to calculate the difference between two process hrtime

Install

npm install --save difference-hrtime

Usage

const process = require('process');
const diff = require('difference-hrtime').default;

const start = process.hrtime();

// Do something

const end = process.hrtime();

console.log('Difference', diff(start, end));
// expected output: [number, number]

License

MIT

Author

Alton Bell Smythe Toncho Dev