High-resolution timestamps
suggest changeperformance.now() returns milliseconds since the time origin, as a fractional number. In a document, that origin is the start of navigation. performance.timing is deprecated; the absolute origin is performance.timeOrigin. Browsers coarsen the resolution, so this is not a raw microsecond clock. The value is also available in Node.
const t = performance.now();
A return value of 6288.319 means 6288 milliseconds and 319 microseconds after the time origin.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents