diff options
author | bnewbold <bnewbold@robocracy.org> | 2016-06-14 00:03:51 -0400 |
---|---|---|
committer | bnewbold <bnewbold@robocracy.org> | 2016-06-14 00:03:51 -0400 |
commit | 63cea846ca1ed11b35519413e034951b4bf25c52 (patch) | |
tree | 5703c4f34787a42ba915b4ef9ec02f2e65f89da3 | |
parent | 68c3728dae3408f6449c78882e36defd2978b716 (diff) | |
download | exuberant-hacks-63cea846ca1ed11b35519413e034951b4bf25c52.tar.gz exuberant-hacks-63cea846ca1ed11b35519413e034951b4bf25c52.zip |
lib: slow things down with 30ms delay
-rw-r--r-- | src/lib.rs | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -6,6 +6,8 @@ extern crate time; use std::env; use std::process::exit; +use std::thread::sleep; +use std::time::Duration; use getopts::{Options, Matches}; use glium::glutin::os::unix::WindowBuilderExt; use glium::{DisplayBuild, Display}; @@ -36,7 +38,7 @@ pub fn run(hack: &mut ExuberantHack, conf: &Matches) { _ => () } } - // XXX: sleep here for 10ms + sleep(Duration::from_millis(30)); } } |