Function calc_next_delay

Source
pub(crate) fn calc_next_delay(
    now: SystemTime,
    when: SystemTime,
) -> (bool, Duration)
Expand description

Return the amount of time we should wait next, when running sleep_until_wallclock(). Also return a boolean indicating whether we expect this to be the final delay.

(This is a separate function for testing.)