Currently I am using Date.now to measure the time between two steps. performance.now() and Date.now() are both used to measure time, but they serve different purposes.Date.now() returns the number of milliseconds elapsed since January 1, 1970, 00:00:00 UTC. It is dependent on the system clock and is used for date manipulation.
On the other hand, performance.now() returns the number of milliseconds/microseconds elapsed since an arbitrary epoch. It is relative to page load and is used for benchmarking and other cases where high-resolution time is required, such as media (gaming, audio, video, etc.)
As for accuracy, performance.now() is more precise than Date.now() hence would request you to allow users to add this during checkly execution
Please authenticate to join the conversation.
In Review
π‘ Feature Request
Runtimes
Over 2 years ago

Shashank
Get notified by email when there are changes.
In Review
π‘ Feature Request
Runtimes
Over 2 years ago

Shashank
Get notified by email when there are changes.