3 stable releases
1.0.2 | Dec 18, 2023 |
---|---|
1.0.1 | Jun 9, 2020 |
#920 in Command line utilities
4KB
sleep
About
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.
Installation & Update
With cargo:
cargo install sleep --force
Command Line
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
Examples
Sleep for one second:
sleep 1000
Dependencies
~1.1–1.7MB
~32K SLoC