main
_ 2023-09-14 19:13:21 -05:00
parent d6297dcbd3
commit f02c8b8449
2 changed files with 5 additions and 1 deletions

View File

@ -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));
}

View File

@ -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);
});
}
}