(&mut self)
| 345 | |
| 346 | impl Fps { |
| 347 | pub fn start(&mut self) { |
| 348 | self.current_frame = Some(PendingFrame { |
| 349 | start: Instant::now(), |
| 350 | duration_elements: None, |
| 351 | duration_render: None, |
| 352 | duration_screencopy: None, |
| 353 | duration_displayed: None, |
| 354 | }); |
| 355 | } |
| 356 | |
| 357 | pub fn elements(&mut self) { |
| 358 | if let Some(frame) = self.current_frame.as_mut() { |
no outgoing calls
no test coverage detected