Skip to content

Support process.hrtime.bigint() #2

@abrenneke

Description

@abrenneke

It would be useful if this module also supported 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions