Now sleep test sleeps 5secs.

This commit is contained in:
Yifan Wu 2020-12-16 15:39:32 +08:00
parent c5cf3aa83e
commit 1ad242a886

View file

@ -7,7 +7,7 @@ extern crate user_lib;
use user_lib::{sleep, exit, get_time, fork, waitpid};
fn sleepy() {
let time: usize = 100;
let time: usize = 1000;
for i in 0..5 {
sleep(time);
println!("sleep {} x {} msecs.", i + 1, time);