summaryrefslogblamecommitdiff
path: root/meap/meap-code/ch10/ch10-sixty/src/main.rs
blob: 74ffa903fdf1e6d07c1c3973c93545667139f6c8 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15














                                             
use std::time;
use std::process;
use std::thread::sleep;

fn main() {
    let delay = time::Duration::from_secs(1);

    let pid = process::id();
    println!("{}", pid);

    for i in 1..=60 {
        sleep(delay);
        println!(". {}", i);
    }
}