Stop the timer timing and record the time taken
(&mut self)
| 326 | impl ScopedTimerGuard<'_> { |
| 327 | /// Stop the timer timing and record the time taken |
| 328 | pub fn stop(&mut self) { |
| 329 | if let Some(start) = self.start.take() { |
| 330 | self.inner.add_elapsed(start) |
| 331 | } |
| 332 | } |
| 333 | |
| 334 | /// Restarts the timer recording from the current time |
| 335 | pub fn restart(&mut self) { |