Skip to content

Conversation

r10s
Copy link
Contributor

@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.
@link2xt link2xt merged commit 4b445b7 into master Jul 12, 2020
@link2xt link2xt deleted the no-instant-time branch July 12, 2020 23:27
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