Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf: update ms to use performance.now() for more accurate time measurements #298

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

johnnyhuirilef
Copy link

Pull request type

Please check the type of change your PR introduces:

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes
  • Other (please describe):

What is the current behavior?

The current behavior is implemented using the +new Date() method to calculate the time difference between two calls.

What is the new behavior?

The new behavior replaces the usage of +new Date() with the more accurate performance.now() method to calculate the time difference between two calls.

Does this introduce a breaking change?

  • Yes
  • No

Other information

The code changes include replacing +new Date() with performance.now() for more accurate time measurements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant