aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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));
}
}