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

Change timer to perf_counter #19

Merged
merged 2 commits into from
Jul 5, 2020

Conversation

Crypto-Spartan
Copy link
Contributor

Right now, aioping is set to use time.time or time.clock for it's ping time. I'm proposing a switch to time.perf_counter, as it has a much higher tick rate than time.time or time.clock. time.perf_counter also includes time during sleep, which time.process_time does not.

https://stackoverflow.com/questions/52222002/what-is-the-difference-between-time-perf-counter-and-time-process-time/52228375

https://www.webucator.com/blog/2015/08/python-clocks-explained/

change timer to time.perf_counter
remove comment
@anton-belousov anton-belousov merged commit e889a5a into stellarbit:master Jul 5, 2020
@anton-belousov
Copy link
Contributor

Thanks for the contribution!

Crypto-Spartan pushed a commit to Crypto-Spartan/aioping that referenced this pull request Oct 30, 2020
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.

2 participants