timer: define sleep() as pub

This commit is contained in:
Astro 2020-05-31 19:54:18 +02:00
parent f9b55508dd
commit 1711feae84
1 changed files with 1 additions and 1 deletions

View File

@ -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 {}