bigint-time
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

bigint-time

bigint-time uses process.hrtime.bigint and performance.now() to return the time in nanoseconds since epoch.

  • Node.js & Browser compatible.
  • TypeScript types available.
  • No dependencies.

Usage

const bigtime = require('bigint-time')

const time = bigtime() // BigInt number returned of the time.

Compatibility

This library assumes Node > 10.4 and that the Browsers support BigInt and performance.now.

The resolution and accuracy may vary depending on platform.

License

MIT

Dependencies (0)

    Dev Dependencies (5)

    Package Sidebar

    Install

    npm i bigint-time

    Weekly Downloads

    1

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    4.89 kB

    Total Files

    8

    Last publish

    Collaborators

    • leichtgewicht
    • dkastl
    • rangermauve