Vendor dependencies for 0.3.0 release

This commit is contained in:
2025-09-27 10:29:08 -05:00
parent 0c8d39d483
commit 82ab7f317b
26803 changed files with 16134934 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
use std::time::{Duration, Instant};
use calloop::{
timer::{TimeoutAction, Timer},
EventLoop,
};
fn main() {
// As of calloop v0.11 there is no difference between low and high precision event loops.
let mut event_loop = EventLoop::try_new().expect("Failed to initialize the event loop!");
let before = Instant::now();
event_loop
.handle()
.insert_source(
Timer::from_duration(Duration::from_micros(20)),
|_, _, _| TimeoutAction::Drop,
)
.unwrap();
event_loop.dispatch(None, &mut ()).unwrap();
let elapsed = before.elapsed();
println!(
"The event loop slept for {} microseconds.",
elapsed.as_micros()
);
}