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

[js] Use higher precision timestamp when available #9166

Merged

Conversation

haxiomic
Copy link
Member

Updating #8168

Improves precision of haxe.Timer.stamp() by using:

  • process.hrtime() (nanosecond precision returned) if -D nodejs
  • performance.now() if it exists. Precision depends on browser, ranges from 5µs to 1ms
  • otherwise, Date.now()

@haxiomic
Copy link
Member Author

haxiomic commented Feb 20, 2020

Seems to have slipped through without triggering CI; will close and open to see if that helps

@haxiomic haxiomic closed this Feb 20, 2020
@haxiomic haxiomic reopened this Feb 20, 2020
@skial skial mentioned this pull request Feb 24, 2020
1 task
@RealyUniqueName RealyUniqueName merged commit 8d5c30d into HaxeFoundation:development Feb 26, 2020
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.

2 participants