You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If system time goes backwards in the intervening period, elapsed will panic:
panicked at /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/instant-0.1.12/src/wasm.rs:24:9:
`earlier` cannot be later than `self`.
This seems to be largely because Instant is based on local system time rather than a proper monotonic clock, violating the specification of std::time::Instant. I think if we're going to do that, we need to let Instant::duration_since saturate rather than panic.
The text was updated successfully, but these errors were encountered:
STR:
let now = Instant::now();
now.elapsed()
;If system time goes backwards in the intervening period,
elapsed
will panic:This seems to be largely because
Instant
is based on local system time rather than a proper monotonic clock, violating the specification ofstd::time::Instant
. I think if we're going to do that, we need to letInstant::duration_since
saturate rather than panic.The text was updated successfully, but these errors were encountered: