mirror of
https://github.com/rcore-os/rCore-Tutorial-v3.git
synced 2024-11-22 17:36:25 +04:00
Bump Rust to nightly-2022-01-19
This commit is contained in:
parent
15a7033af6
commit
8917eb7acc
@ -1 +1 @@
|
||||
nightly-2022-01-01
|
||||
nightly-2022-01-19
|
||||
|
@ -7,7 +7,7 @@ extern crate user_lib;
|
||||
use user_lib::{sleep, exit, get_time, fork, waitpid};
|
||||
|
||||
fn sleepy() {
|
||||
let time: usize = 1000;
|
||||
let time: usize = 100;
|
||||
for i in 0..5 {
|
||||
sleep(time);
|
||||
println!("sleep {} x {} msecs.", i + 1, time);
|
||||
@ -27,4 +27,4 @@ pub fn main() -> i32 {
|
||||
println!("use {} msecs.", get_time() - current_time);
|
||||
println!("sleep pass.");
|
||||
0
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user