MCPcopy Create free account
hub / github.com/MagmaWM/MagmaWM / screencopy

Method screencopy

src/debug.rs:372–380  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

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() {

Callers 1

renderMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected