Bump Rust to nightly-2022-01-19
This commit is contained in:
parent
15a7033af6
commit
8917eb7acc
2 changed files with 3 additions and 3 deletions
|
@ -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};
|
use user_lib::{sleep, exit, get_time, fork, waitpid};
|
||||||
|
|
||||||
fn sleepy() {
|
fn sleepy() {
|
||||||
let time: usize = 1000;
|
let time: usize = 100;
|
||||||
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);
|
||||||
|
@ -27,4 +27,4 @@ pub fn main() -> i32 {
|
||||||
println!("use {} msecs.", get_time() - current_time);
|
println!("use {} msecs.", get_time() - current_time);
|
||||||
println!("sleep pass.");
|
println!("sleep pass.");
|
||||||
0
|
0
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue