performance.now()

A function that returns a high-resolution timestamp in milliseconds, with fractions, for measuring how long something takes.

In more detail

Unlike Date.now() it never jumps when the system clock is adjusted, so it is the right tool for timing code. The value counts from when the program or page started, not from a calendar date.

Related terms

Taught in

References