Uses performance.now() if available, otherwise, uses Date.now() (e.g. react native without a polyfill)
The values returned by performance.now() always increase at a constant rate,
independent of the system clock (which might be adjusted manually or skewed
by software like NTP).
Otherwise, performance.timing.navigationStart + performance.now() will be
approximately equal to Date.now()
Uses performance.now() if available, otherwise, uses Date.now() (e.g. react native without a polyfill)
The values returned by performance.now() always increase at a constant rate, independent of the system clock (which might be adjusted manually or skewed by software like NTP).
Otherwise, performance.timing.navigationStart + performance.now() will be approximately equal to Date.now()
See: https://developer.mozilla.org/en-US/docs/Web/API/Performance/now#Example