npm.io
1.0.2 • Published 5 years ago

bigint-time

Licence
MIT
Version
1.0.2
Deps
0
Size
5 kB
Vulns
0
Weekly
0
Stars
2

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

Keywords