Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle monotonic clock going backwards during runtime
We've had some users complain that `duration_since` is panic'ing for them. This is possible if the machine being run on is buggy and the "monotonic clock" goes backwards, which sadly some ancient systems can do. Rust addressed this issue in 1.60 by forcing `Instant::duration_since` to not panic if the machine is buggy (and time goes backwards), but for users on older rust versions we do the same by hand here.
- Loading branch information