Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/patuwwy/real-hrtime
- Owner: patuwwy
- Created: 2021-10-16T10:35:33.000Z (about 3 years ago)
- Default Branch: release/0.1
- Last Pushed: 2021-10-24T00:22:22.000Z (about 3 years ago)
- Last Synced: 2024-10-16T15:47:01.833Z (2 months ago)
- Language: Makefile
- Homepage:
- Size: 66.4 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 1970rht.stringified()
// above stringified
```Test:
```
npm test
```