-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Fixes #2045 Timeouts should be decided with a monotonic clock #2046
base: main
Are you sure you want to change the base?
Conversation
This is a monotonic clock suitable for measuring durations and timeouts.
Python 2 support is being removed in the relatively near term, with a 3.0 release. Given that this isn't an urgent fix, I'd say go ahead and rewrite in the simpler, Python 3-only fashion, and we'll just aim it for 3.0. Keep the current git history intact, though, so that if @bitprophet should want to use the Python 2-compatible version he can just cherry-pick from 94d840f or thereabouts. |
Thanks. For the Python 3 only version would you prefer I keep the |
That's a call for @bitprophet -- I'll bump the question to his attention. |
Re: Python 2, nah, that's going out the window RSN. Re: whether it's nice hiding
I'll put this in a milestone so there's a chance I'll get to it when crafting 3.0. Thanks! |
Linking to #2045 (doing it in the subject doesn't work, sadly) |
I've tried to retain Python 2.7 compatibility by using
timeit.default_timer
as the monotonic clock. If Python 2.7 support was not needed this change would be simpler.