timer: define sleep() as pub
This commit is contained in:
parent
f9b55508dd
commit
1711feae84
@ -41,7 +41,7 @@ pub fn now() -> u32 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// block for at least `amount` milliseconds
|
/// block for at least `amount` milliseconds
|
||||||
fn sleep(amount: u32) {
|
pub fn sleep(amount: u32) {
|
||||||
use crate::timer::now;
|
use crate::timer::now;
|
||||||
let start = now();
|
let start = now();
|
||||||
while now() - start <= amount {}
|
while now() - start <= amount {}
|
||||||
|
Loading…
Reference in New Issue
Block a user