From 1711feae8412b160454c655783d1335a1bfbed6d Mon Sep 17 00:00:00 2001 From: Astro Date: Sun, 31 May 2020 19:54:18 +0200 Subject: [PATCH] timer: define sleep() as pub --- src/timer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/timer.rs b/src/timer.rs index ff61c3d..cfdd3b6 100644 --- a/src/timer.rs +++ b/src/timer.rs @@ -41,7 +41,7 @@ pub fn now() -> u32 { } /// block for at least `amount` milliseconds -fn sleep(amount: u32) { +pub fn sleep(amount: u32) { use crate::timer::now; let start = now(); while now() - start <= amount {}