Skip to content

Fixing sleep time to wait for exact next second. #429

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

fx-kirin
Copy link

Crython depends on accuracy of time.sleep(1) of tab.py.

It can cause delays, and the delays accumulate. So sometimes a second can be ignored because of it, like sleep starts at 13:01:21.99 and wakes up at 13:01:23.01. This case, the cron job matched to 13:01:22 will not be executed.

This fix will repair the ignorance.

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.

1 participant