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

bugfix: use time.monotonic() when calculating intervals #80

Merged
merged 1 commit into from
Sep 14, 2023

Conversation

mik3y
Copy link
Contributor

@mik3y mik3y commented Sep 12, 2023

time.time() can change suddenly (and go backwards) since it reflects the system date/time. A monotonic source avoids this class of problem.

`time.time()` can change suddenly (and go backwards) since it reflects the
system date/time. A monotonic source avoids this class of problem.
Copy link
Contributor

@ImLunaHey ImLunaHey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

Copy link
Contributor

@s-scheele-simonsen s-scheele-simonsen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice one! 👍

@s-scheele-simonsen s-scheele-simonsen merged commit 958a3aa into axiomhq:main Sep 14, 2023
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.

3 participants