sleep 1.0.2

simple sleep tool for windows
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use clap::Parser;

#[derive(Parser)]
/// Sleep for a given amount of time
struct Args {
    /// The time to sleep in milliseconds
    time: u64,
}

use std::{
    thread,
    time::Duration,
};

fn main() -> Result<(), Box<dyn std::error::Error>> {
    let args = Args::parse();
    Ok(thread::sleep(Duration::from_millis(args.time)))
}