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

job_10msがずれる問題について #9

Open
NONAKA-Yuuki opened this issue Feb 16, 2024 · 1 comment
Open

job_10msがずれる問題について #9

NONAKA-Yuuki opened this issue Feb 16, 2024 · 1 comment

Comments

@NONAKA-Yuuki
Copy link

if (current_time - prev_time_10ms > 10000) // TODO 10秒で1msくらいズレる

current_time - prev_time_10ms > 10000だと、10001usでJobが動くのでJobの度に1us誤差が出てしまい、10秒後に1msずれる気がしました。

current_time - prev_time_10ms >= 10000にしたら改善されないでしょうか?

@NONAKA-Yuuki
Copy link
Author

job_100msは1秒で約1msずれるとのことなので、別要因かもしれませんが。

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

No branches or pull requests

1 participant