/// Convert a duration into a 64-bit nanosecond integer
///
/// Note: `u64::MAX` is a little over 584 years in nanoseconds
Convert a duration into a 64-bit nanosecond integer
Note: `u64::MAX` is a little over 584 years in nanoseconds
Convert a duration into a 64 - bit nanosecond integer Note : ` u64 :: MAX ` is a little over 584 years in nanoseconds
pub fn duration_ns64(duration: time::Duration) -> Option<u64> {
    duration
        .as_secs()
        .checked_mul(NS_PER_S)
        .and_then(|n| n.checked_add(u64::from(duration.subsec_nanos())))
}
pub fn duration_ns64 ( duration : time :: Duration ) -> Option < u64 > { duration . as_secs ( ) . checked_mul ( NS_PER_S ) . and_then ( | n | n . checked_add ( u64 :: from ( duration . subsec_nanos ( ) ) ) ) }
Convert a duration into a 64-bit nanosecond integer
Note: `u64::MAX` is a little over 584 years in nanoseconds
Convert a duration into a 64 - bit nanosecond integer Note : ` u64 :: MAX ` is a little over 584 years in nanoseconds
duration
time::Duration