aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbnewbold <bnewbold@robocracy.org>2016-06-14 00:03:51 -0400
committerbnewbold <bnewbold@robocracy.org>2016-06-14 00:03:51 -0400
commit63cea846ca1ed11b35519413e034951b4bf25c52 (patch)
tree5703c4f34787a42ba915b4ef9ec02f2e65f89da3
parent68c3728dae3408f6449c78882e36defd2978b716 (diff)
downloadexuberant-hacks-63cea846ca1ed11b35519413e034951b4bf25c52.zip
exuberant-hacks-63cea846ca1ed11b35519413e034951b4bf25c52.tar.gz
lib: slow things down with 30ms delay
-rw-r--r--src/lib.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 8bccf3b..73b4249 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -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));
}
}