Surprisingly, Duration::MAX was not the maximum possible duration.
Duration::MAX must be able to contain the delta between any two Inteval values, but not every Duration can be used with Interval (if Duration > u32::MAX / 2 then we wouldn't be able to tell if the Instant was in the past or the future).
Surprisingly,
Duration::MAX
was not the maximum possible duration.Duration::MAX
must be able to contain the delta between any twoInteval
values, but not everyDuration
can be used withInterval
(ifDuration > u32::MAX / 2
then we wouldn't be able to tell if theInstant
was in the past or the future).