pub fn end(&mut self) -> Duration {
        let wait = self.get_wait(self.clock.elapsed());
        self.clock.reset();
        self.update_lag(wait);
        wait
    }
/// signal that execution for this iteration of the loop has completed, and prepare for the next iteration
signal that execution for this iteration of the loop has completed, and prepare for the next iteration
signal that execution for this iteration of the loop has completed and prepare for the next iteration
pub fn end(&mut self) -> Duration {
        let wait = self.get_wait(self.clock.elapsed());
        self.clock.reset();
        self.update_lag(wait);
        wait
    }
pub fn end ( & mut self ) -> Duration { let wait = self . get_wait ( self . clock . elapsed ( ) ) ; self . clock . reset ( ) ; self . update_lag ( wait ) ; wait }
signal that execution for this iteration of the loop has completed, and prepare for the next iteration
signal that execution for this iteration of the loop has completed and prepare for the next iteration
&mut self