Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Make duration calculation robust against clock drift #10042

Merged
merged 1 commit into from
Oct 18, 2021

Commits on Oct 18, 2021

  1. Make duration calculation robust against clock drift

    It is possible that `Instant::now()` is returning an earlier clock time when being called a second
    time. To guard against this, we should use `saturating_duration_since`.
    bkchr committed Oct 18, 2021
    Configuration menu
    Copy the full SHA
    c7437f5 View commit details
    Browse the repository at this point in the history