-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#69 - Fix an issue with the callback iteration timestamp drifting
The callback iteration slowly drifts a few milliseconds per call This is due to inaccuracies of time.sleep and some overhead on the `_run_callback` method This fix the issue by using sched.enterabs instead of sched.enter. This time to enter is always calculated based on the start timestamp of the callback There will still be some milliseconds variation from execution to execution, but it will never drift.
- Loading branch information
Showing
3 changed files
with
14 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ | |
# | ||
# SPDX-License-Identifier: MIT | ||
|
||
__version__ = "1.2.2" | ||
__version__ = "1.2.3" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters