Now sleep test sleeps 5secs.
This commit is contained in:
parent
c5cf3aa83e
commit
1ad242a886
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ extern crate user_lib;
|
||||||
use user_lib::{sleep, exit, get_time, fork, waitpid};
|
use user_lib::{sleep, exit, get_time, fork, waitpid};
|
||||||
|
|
||||||
fn sleepy() {
|
fn sleepy() {
|
||||||
let time: usize = 100;
|
let time: usize = 1000;
|
||||||
for i in 0..5 {
|
for i in 0..5 {
|
||||||
sleep(time);
|
sleep(time);
|
||||||
println!("sleep {} x {} msecs.", i + 1, time);
|
println!("sleep {} x {} msecs.", i + 1, time);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue