Timestamps

suggest change

Syntax

Remarks

performance.now() measures milliseconds since the document’s time origin, not since 1970. Browsers may coarsen it, often to 0.1 ms or 1 ms, so it is not always sub-millisecond. Node provides the same method.

Date.now() and (new Date()).getTime() follow the system clock, so a clock adjustment can move them backward or forward.

High-resolution timestamps

Low-resolution timestamps

Get Timestamp in Seconds

Support for legacy browsers

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents