Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/patuwwy/real-hrtime

NodeJS module providing process.hrtime() but uses CLOCK_REALTIME instead of CLOCK_MONOTONIC
https://github.com/patuwwy/real-hrtime

Last synced: 17 days ago
JSON representation

NodeJS module providing process.hrtime() but uses CLOCK_REALTIME instead of CLOCK_MONOTONIC

Awesome Lists containing this project

README

        

# real-hrtime

NodeJS module

`Date.now()` equivalent but with nanoseconds (BigInt)

currently only for Linux

API
```
const rht = require("real-hrtime")

rht.bigint()
// Number of nanoseconds since 1970

rht.stringified()
// above stringified
```

Test:
```
npm test
```