We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It would be useful if this module also supported hrtime.bigint().
hrtime.bigint()
If you do
const start = process.hrtime.bigint(); prettyTime(process.hrtime.bigint() - start);
You'll get a
TypeError: Cannot mix BigInt and other types, use explicit conversions at module.exports (pretty-time/index.js:32:19)
So it's neccesary to do prettyTime(Number(process.hrtime.bigint() - start)) - would be nice it this module did that itself.
prettyTime(Number(process.hrtime.bigint() - start))
The text was updated successfully, but these errors were encountered:
Moreover, process.hrtime([time]) has been deprecated, leaving process.hrtime.bigint() the only option for now:
process.hrtime([time])
process.hrtime.bigint()
See: https://nodejs.org/api/process.html#process_process_hrtime_time
Sorry, something went wrong.
No branches or pull requests
It would be useful if this module also supported
hrtime.bigint()
.If you do
You'll get a
So it's neccesary to do
prettyTime(Number(process.hrtime.bigint() - start))
- would be nice it this module did that itself.The text was updated successfully, but these errors were encountered: