(&mut self)
| 370 | } |
| 371 | |
| 372 | pub fn screencopy(&mut self) { |
| 373 | if let Some(frame) = self.current_frame.as_mut() { |
| 374 | frame.duration_screencopy = Some( |
| 375 | Instant::now().duration_since(frame.start) |
| 376 | - frame.duration_elements.unwrap_or(Duration::ZERO) |
| 377 | - frame.duration_render.unwrap_or(Duration::ZERO), |
| 378 | ); |
| 379 | } |
| 380 | } |
| 381 | |
| 382 | pub fn displayed(&mut self) { |
| 383 | if let Some(mut frame) = self.current_frame.take() { |