Crates.io | sleep |
lib.rs | sleep |
version | 1.0.2 |
source | src |
created_at | 2020-06-09 08:44:56.20401 |
updated_at | 2023-12-18 17:56:03.233362 |
description | simple sleep tool for windows |
homepage | |
repository | https://github.com/hardliner66/sleep-rs |
max_upload_size | |
id | 251825 |
size | 8,428 |
Windows has no simple tool or command to wait for a certain amount of time while executing a batch file.
I already have rust installed on all my computers so I thought it would be fitting to create a simple sleep command which can be installed directly through cargo.
With cargo:
cargo install sleep --force
sleep 1.0
Sleep for a given amount of time
USAGE:
sleep <TIME>
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
ARGS:
<TIME> The time to sleep in milliseconds
Sleep for one second:
sleep 1000