holepunchto / bare-hrtime

High-resolution timers for JavaScript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

High-resolution timers for JavaScript

License:Apache License 2.0


Languages

Language:C 63.2%Language:JavaScript 29.3%Language:CMake 7.6%