/// Returns the amount of time elapsed from another `EventInstant` to this one, if they
/// originate from the same time source, and this one is not earlier than `earlier`.
///
/// This function does not panic if `earlier` is later than `self` and returns `None` instead.
Returns the amount of time elapsed from another `EventInstant` to this one, if they
originate from the same time source, and this one is not earlier than `earlier`.


Returns the amount of time elapsed from another ` EventInstant ` to this one if they originate from the same time source and this one is not earlier than ` earlier ` .
pub fn duration_since(&self, earlier: Self) -> Option<Duration> {
        self.0.partial_cmp(&earlier.0).map(|ordering| match ordering {
            Ordering::Less => None,
            _ => self.0.duration_since(earlier.0),
        }).unwrap_or(None)
    }
pub fn duration_since ( & self , earlier : Self ) -> Option < Duration > { self . 0 . partial_cmp ( & earlier . 0 ) . map ( | ordering | match ordering { Ordering :: Less => None , _ => self . 0 . duration_since ( earlier . 0 ) , } ) . unwrap_or ( None ) }
Returns the amount of time elapsed from another `EventInstant` to this one, if they
originate from the same time source, and this one is not earlier than `earlier`.
Returns the amount of time elapsed from another ` EventInstant ` to this one if they originate from the same time source and this one is not earlier than ` earlier ` .
&self
earlier
Self