0

What is the origin time for performance.now()? Is it navigationStart, requestStart or something else?

Shane
  • 369
  • 1
  • 2
  • 13
  • 1
    https://developer.mozilla.org/en-US/docs/Web/API/DOMHighResTimeStamp#The_time_origin – riv Jun 13 '18 at 17:19
  • ...which is linked from [`now`](https://developer.mozilla.org/en-US/docs/Web/API/Performance/now) (which also has an important note about high-res timestamps). – T.J. Crowder Jun 13 '18 at 17:22

1 Answers1

0

MDN say:

performance.timing.navigationStart + performance.now() will be approximately equal to Date.now()

performance.now() = Date.now() - performance.timing.navigationStart

The performance.now() start navigationStart ms beyond January 1, 1970!