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

Fix clock is always a second off #333

Merged
merged 2 commits into from
May 20, 2019
Merged

Fix clock is always a second off #333

merged 2 commits into from
May 20, 2019

Conversation

RX14
Copy link
Contributor

@RX14 RX14 commented May 19, 2019

I don't understand why these two clocks disagree, but they do, and this way always seems to update the second exactly on time.

@Alexays
Copy link
Owner

Alexays commented May 20, 2019

Does this if still needed in order to show correct minutes with an interval of 60 seconds?

if (sub_m > 0) {
thread_.sleep_until(timeout - std::chrono::seconds(sub_m - 1));
} else {

edit: yeah that's not needed anymore, we can remove this workaround!

@Alexays
Copy link
Owner

Alexays commented May 20, 2019

Thanks!

@Alexays Alexays merged commit 232073c into Alexays:master May 20, 2019
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.

None yet

2 participants