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

use time::SystemTime instead of time::Instant #1706

Merged
merged 1 commit into from
Jul 12, 2020
Merged

Conversation

r10s
Copy link
Member

@r10s r10s commented Jul 12, 2020

time::Instant may use libc::clock_gettime(CLOCK_MONOTONIC) eg. on android and does not advance while being in deep sleep mode. therefore, time::Instant is not a reliable way for timeouts or stoping times.

we experienced that issue the first time when showing the "uptime" in info-dialog. see #1437 and https://users.rust-lang.org/t/std-now-with-android/41774 for some backgrounds.

closes #1437

…ibc::clock_gettime(CLOCK_MONOTONIC) eg. on android and does not advance while being in deep sleep mode. therefore, time::Instant is not a reliable way for timeouts or stoping times.
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.

is std::time::Instant working/used as expected?
2 participants