3 stable releases

1.0.2 Dec 18, 2023
1.0.1 Jun 9, 2020

#770 in Command line utilities

Download history 16/week @ 2024-07-05 4/week @ 2024-07-12 19/week @ 2024-09-20 52/week @ 2024-09-27 7/week @ 2024-10-04

78 downloads per month

MIT/Apache

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