JSPM

bigint-time

1.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 6
  • Score
    100M100P100Q42955F
  • License MIT

Get the current time in bigint time.

Package Exports

  • bigint-time

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (bigint-time) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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