Skip to content

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

License

Notifications You must be signed in to change notification settings

consento-org/bigint-time

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

About

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

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published