fn try_now(&self) -> Result<Instant<Self>, embedded_time::clock::Error> {
        let now = std::time::Instant::now();

        let elapsed = now.duration_since(self.start);

        // Note: We are discarding the upper 64 bits of nanoseconds. However, even while doing so,
        // we can represent ~594 years of time, so this should not be relevant.
        Ok(Instant::new(elapsed.as_nanos() as u64))
    }
/// Get the current time from the clock.
Get the current time from the clock.
Get the current time from the clock .
fn try_now(&self) -> Result<Instant<Self>, embedded_time::clock::Error> {
        let now = std::time::Instant::now();
        let elapsed = now.duration_since(self.start);
        // Note: We are discarding the upper 64 bits of nanoseconds. However, even while doing so,
        // we can represent ~594 years of time, so this should not be relevant.
        Ok(Instant::new(elapsed.as_nanos() as u64))
    }
fn try_now ( & self ) -> Result < Instant < Self > , embedded_time :: clock :: Error > { let now = std :: time :: Instant :: now ( ) ; let elapsed = now . duration_since ( self . start ) ; // Note: We are discarding the upper 64 bits of nanoseconds. However, even while doing so, // we can represent ~594 years of time, so this should not be relevant. Ok ( Instant :: new ( elapsed . as_nanos ( ) as u64 ) ) }
Get the current time from the clock.
Get the current time from the clock .
&self
&self