pub fn checked_duration_since(&self, earlier: Instant) -> Option<Duration> {
        let diff = self.0 - earlier.0;

        if diff >= 0 {
            Some(Duration(diff as u32))
        } else {
            None
        }
    }
/// Returns the amount of time elapsed from another instant to this one, or None if that instant
/// is earlier than this one.
Returns the amount of time elapsed from another instant to this one, or None if that instant
is earlier than this one.
Returns the amount of time elapsed from another instant to this one or None if that instant is earlier than this one .
pub fn checked_duration_since(&self, earlier: Instant) -> Option<Duration> {
        let diff = self.0 - earlier.0;
        if diff >= 0 {
            Some(Duration(diff as u32))
        } else {
            None
        }
    }
pub fn checked_duration_since ( & self , earlier : Instant ) -> Option < Duration > { let diff = self . 0 - earlier . 0 ; if diff >= 0 { Some ( Duration ( diff as u32 ) ) } else { None } }
Returns the amount of time elapsed from another instant to this one, or None if that instant
is earlier than this one.
Returns the amount of time elapsed from another instant to this one or None if that instant is earlier than this one .
&self
earlier
Instant
&self
earlier
Instant