DOMHighResTimeStamp
A time value in milliseconds with fractions, measured from when the page started loading, used by performance.now() and animation callbacks.
In more detail
Values are accurate to a fraction of a millisecond, although browsers round them slightly for security. It is precise and never jumps backwards when the system clock changes, which makes it right for measuring durations.
Related terms
- performance.now() — A function that returns a high-resolution timestamp in milliseconds, with fractions, for measuring how long something takes.
- requestAnimationFrame() — A function that schedules a callback to run just before the browser's next repaint, the right place to update animations.
Taught in
- requestAnimationFrame vs requestIdleCallback: High-FPS Work — Frontend Architecture & Web Platform