Skip to content

Latest commit

 

History

History
34 lines (21 loc) · 551 Bytes

README.md

File metadata and controls

34 lines (21 loc) · 551 Bytes

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