pretty-time
pretty-time copied to clipboard
Easily format the time from node.js `process.hrtime`. Works with timescales ranging from weeks to nanoseconds.
It would be useful if this module also supported [`hrtime.bigint()`](https://nodejs.org/api/process.html#process_process_hrtime_bigint). If you do ``` const start = process.hrtime.bigint(); prettyTime(process.hrtime.bigint() - start); ``` You'll get a ``` TypeError: Cannot mix BigInt...
Hi, There! This PR add support for passing the time argument as `BigInt`. AS IS, when trying to pass a `BigInt` to `pretty-time`, for example: ```js const start = process.hrtime.bigint();...