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

move CLOCK_REALTIME to CLOCK_MONOTONIC #124

Closed
wants to merge 1 commit into from
Closed

move CLOCK_REALTIME to CLOCK_MONOTONIC #124

wants to merge 1 commit into from

Conversation

KushnerykPavel
Copy link

resolve #63
move CLOCK_REALTIME to CLOCK_MONOTONIC

@ethanf
Copy link
Collaborator

ethanf commented Jun 24, 2024

@sergiu128 is this the direction we want to go in?

@sergiu128
Copy link
Collaborator

Sorry, missed it. I’m unsure if this would work 100% of the time, like when the system suspends. Also seems CLOCK MONOTONIC is susceptible to NTP skewing - I didn’t initially know this is the case.

I wouldn’t go through with this as I cannot guarantee correctness. I think we should stick to the realtime clock for now and in the future use the monotonic one only for time differences on the same machine, so timer object.

@sergiu128 sergiu128 closed this Jul 2, 2024
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.

Use CLOCK_MONOTONIC in ScheduleOnce and ScheduleRepeating
3 participants