nanouptime
v0.1.0
Published
Get the time since your app is started
Readme
nanouptime
Get the time since your app is started
What it does
We have performance.now() in browsers but we have not it in Node.js. So that package implements that function with 3 ways:
- If
windowis undefined butprocessis not, returns time based onprocess.hrtime()andprocess.uptime() - If both of
windowandperformanceare defined, returnsperformance.now() - Otherwise, it tries to return
Date.now()
