From f02c8b844909d05c3436ff83c0c891eab08baa6f Mon Sep 17 00:00:00 2001 From: _ <_@_> Date: Thu, 14 Sep 2023 19:13:21 -0500 Subject: [PATCH] :construction: wip --- src/driver.rs | 2 +- src/main.rs | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) 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); }); } }