#![feature(test)] #![allow(unused_imports)] extern crate test; use test::Bencher; /* use winapi::um::xinput::*; #[bench] #[ignore] fn bench_connected_controller(b: &mut Bencher) { unsafe { let mut state: XINPUT_STATE = core::mem::zeroed(); b.iter(|| { winapi::um::xinput::XInputGetState(0, &mut state); }); } } #[bench] #[ignore] fn bench_missing_controller(b: &mut Bencher) { unsafe { let mut state: XINPUT_STATE = core::mem::zeroed(); b.iter(|| { winapi::um::xinput::XInputGetState(1, &mut state); }); } } */