What is the origin time for performance.now()? Is it navigationStart, requestStart or something else?
Asked
Active
Viewed 567 times
0
-
1https://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 Answers
0
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!