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

Fix clock off by a factor of 1000 in web browser #72

Merged
merged 1 commit into from
Jul 20, 2022

Conversation

vargad
Copy link
Contributor

@vargad vargad commented Jul 13, 2022

window.performance.now() return milliseconds. As Instant is in nanoseconds, it needs to be multiplied by 1.000.000 not 1.000.

fixes #71

window.performance.now() return milliseconds. As Instant is in
nanoseconds, it needs to be multiplied by 1.000.000 not 1.000.
@tobz
Copy link
Member

tobz commented Jul 14, 2022

Oh boy, good catch! 😅

This looks good to me, just need CI to pass.

@vargad
Copy link
Contributor Author

vargad commented Jul 14, 2022

This looks good to me, just need CI to pass.

Seems CI is failing for unrelated reasons.

@tobz
Copy link
Member

tobz commented Jul 17, 2022

Yeah, not sure why it's broken all the sudden (🤔) but definitely unrelated to your changes.

@tobz tobz merged commit 2e4272e into metrics-rs:main Jul 20, 2022
@tobz
Copy link
Member

tobz commented Jul 20, 2022

Thanks again for your contribution!

@tobz
Copy link
Member

tobz commented Jul 20, 2022

Released as [email protected].

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.

Quanta Clock is off by a factor of 1000 in web browsers
2 participants