Need performance.now in checkly execution

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.

Upvoters
Status

In Review

Board

πŸ’‘ Feature Request

Tags

Runtimes

Date

Over 2 years ago

Author

Shashank

Subscribe to post

Get notified by email when there are changes.