JavaScript Timestamps High-resolution timestamps

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Insert
> Step 2: And Like the video. BONUS: You can also share it!

Example

performance.now() returns a precise timestamp: The number of milliseconds, including microseconds, since the current web page started to load.

More generally, it returns the time elapsed since the performanceTiming.navigationStart event.

t = performance.now();

For example, in a web browser's main context, performance.now() returns 6288.319 if the web page began to load 6288 milliseconds and 319 microseconds ago.



Got any JavaScript Question?