You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
337 B
Rust

use std::{thread,time};
fn initialization() {
let t = time::Duration::from_millis(15000);
thread::sleep(t);
}
fn work() {
let t = time::Duration::from_millis(15000);
loop {
thread::sleep(t);
println!("Work.");
}
}
fn main() {
initialization();
println!("Done initializing, start work.");
work();
}