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

Use a monotonic clock instead of time.time() #109

Open
eldipa opened this issue Jan 25, 2020 · 0 comments
Open

Use a monotonic clock instead of time.time() #109

eldipa opened this issue Jan 25, 2020 · 0 comments
Labels
enhancement something nice to have but it is not neither critical nor urgent good first issue issues that should be easy to get done

Comments

@eldipa
Copy link
Collaborator

eldipa commented Jan 25, 2020

Describe the feature you'd like
time.time() is sensible to time shifts due to clock readjustments via NTP
or others.

This may lead to unexpected timeouts, event to absurd elapsed time
notifications (like saying that an example took hours)

The new Python 3.x's monotonic clock should be immune to these.

The codes that use time.time() to calculate delta of times are:

@eldipa eldipa added enhancement something nice to have but it is not neither critical nor urgent good first issue issues that should be easy to get done labels Jan 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement something nice to have but it is not neither critical nor urgent good first issue issues that should be easy to get done
Projects
None yet
Development

No branches or pull requests

1 participant