global-monotonic-clock.js 286 B

12345678910
  1. "use strict";
  2. const { hrtime, toMS } = require("./utils");
  3. // Returns the DOMHighResTimeStamp representing the high resolution time value of the global monotonic clock.
  4. function getGlobalMonotonicClockMS() {
  5. return toMS(hrtime());
  6. }
  7. module.exports = { getGlobalMonotonicClockMS };