1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
main_loop ===== main loop ```toml main_loop = "0.2" ``` for use without winit ```toml main_loop = { version = "0.2", default-features = false } ``` ```rust extern crate main_loop; use main_loop::ControlFlow; fn main() { main_loop::run(|ms| { println!("{:?}ms since start", ms); ControlFlow::Continue }); } ```