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 a
specific time 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.
npm install relative-microtime --save
const timer =const milli = Dateconst micro =console // 1537446194859console // 1537446194859132
timer = microtime()
Sync the microtime clock to the UTC wall clock.
timer function synced with the UTC time when
was called. Any clock drift that happens after the call to
will not influence the returned
Number representing the microseconds elapsed since the UNIX