diff --git a/src/driver.rs b/src/driver.rs index d6f977d..33ada2c 100644 --- a/src/driver.rs +++ b/src/driver.rs @@ -44,7 +44,7 @@ pub struct Driver ctl: Controller, } -fn sleep_ms (ms: u64) +pub fn sleep_ms (ms: u64) { std::thread::sleep (std::time::Duration::from_millis (ms)); } diff --git a/src/main.rs b/src/main.rs index 10c9d40..64baefb 100644 --- a/src/main.rs +++ b/src/main.rs @@ -135,6 +135,7 @@ impl eframe::App for App { texture.set (egui::ColorImage::from_rgba_premultiplied([1280,720], &frame.data), Default::default ()); self.latency = Instant::now () - frame.capture_time; self.camera_frames += 1; + println! (" Camera"); }, } } @@ -168,8 +169,11 @@ impl eframe::App for App { ui.image (texture, size); self.gui_frames += 1; + println! ("GUI"); ui.checkbox(&mut self.requesting_frames, "Run"); + + // driver::sleep_ms (500); }); } }