pub fn compute_elapsed(&self, deadline: Instant) -> u32 {
        deadline
            .checked_duration_since(Instant::now())
            .map(|d| d.as_millis() as u32)
            .unwrap_or(0)
    }
/// Compute an elapsed value for SetTimer (in ms)
Compute an elapsed value for SetTimer (in ms)
Compute an elapsed value for SetTimer ( in ms )
pub fn compute_elapsed(&self, deadline: Instant) -> u32 {
        deadline
            .checked_duration_since(Instant::now())
            .map(|d| d.as_millis() as u32)
            .unwrap_or(0)
    }
pub fn compute_elapsed ( & self , deadline : Instant ) -> u32 { deadline . checked_duration_since ( Instant :: now ( ) ) . map ( | d | d . as_millis ( ) as u32 ) . unwrap_or ( 0 ) }
Compute an elapsed value for SetTimer (in ms)
Compute an elapsed value for SetTimer ( in ms )
&self
deadline
Instant
&self
deadline
Instant