-
Notifications
You must be signed in to change notification settings - Fork 215
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
replace deprecated time.clock() in tests #245
Conversation
I think a python 2/3 compatible solution would be good to add here. |
The release of Python "3.8.0 final: Monday, 2019-10-21." This could merged once this project has dropped Python 2.7 support. For the moment, I agree with @snowman2 for a solution compatible with both Python 2/3. |
My mistake - I forgot I had been starting the process of removing Python 2 from my system. Unfortunately I can't see a good solution that works for Python 2 and Python 3. I think it means going for either a potentially lower resolution |
You could instead use |
Maybe a try/except ImportError using |
Another way to do this might be to convert this code to some kind of benchmark package, which would involve more effort. Recently, there have been some issues regarding performance concerns. I do find it interesting the |
I noticed it as well, but didn't fix it yet as it is not a huge problem until python2 support is dropped. |
Fix warnings and prepare for Python 3.8.
OK. That works. I went with |
Approved from my end. 👍 |
Fix warnings and prepare for Python 3.8.