relative-microtime
This module returns the number of microseconds elapsed since January 1,
1970 00:00:00 UTC.
Note: The returned number of microseconds are locked relative to the
start time of the process and is therefore not subject to clock drift.
This is contrary to how Date.now()
operates, whos return value (in
milliseconds) is always based on the system clock.
![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)
Installation
npm install relative-microtime --save
Usage
const microtime = require('relative-microtime')
const milli = Date.now()
const micro = microtime()
console.log(milli)
console.log(micro)
Gotcha
API
microtime()
Returns a Number
representing the microseconds elapsed since the UNIX
epoch.
License
MIT