/// Reset the clock's elapsed time to
/// zero, returning the time that had
/// elapsed before the reset.
Reset the clock's elapsed time to
zero, returning the time that had
elapsed before the reset.
Reset the clock ' s elapsed time to zero returning the time that had elapsed before the reset .
pub fn restart(&mut self) -> Duration {
        let now = Instant::now();
        let elapsed = now - self.last_restart;
        self.last_restart = now;
        elapsed
    }
pub fn restart ( & mut self ) -> Duration { let now = Instant :: now ( ) ; let elapsed = now - self . last_restart ; self . last_restart = now ; elapsed }
Reset the clock's elapsed time to
zero, returning the time that had
elapsed before the reset.
Reset the clock ' s elapsed time to zero returning the time that had elapsed before the reset .
&mut self