Skip to content

patuwwy/real-hrtime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published