Skip to content

holepunchto/bare-hrtime

Repository files navigation

bare-hrtime

High-resolution timers for JavaScript.

npm i bare-hrtime

Usage

const hrtime = require('bare-hrtime')

hrtime() // returns [seconds, nanoseconds]
hrtime.bigint() // returns nanoseconds

License

Apache-2.0