From 63cea846ca1ed11b35519413e034951b4bf25c52 Mon Sep 17 00:00:00 2001 From: bnewbold Date: Tue, 14 Jun 2016 00:03:51 -0400 Subject: lib: slow things down with 30ms delay --- src/lib.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)); } } -- cgit v1.2.3