Sleep for Windows
A small console program that pauses execution of a script/terminal for a specified amount of time.
[jp-insert-prog-spec-table]
[jp-insert-download-block]
Sleep is a small console application that pauses execution of a script/terminal for a specified amount of time.
It is very similar to the Linux Sleep program from the GNU core utils package.
[jp-insert-donation-button]
This program was made for my private use many years ago. I still use it today, so I decided to publish it. Maybe it will be useful to someone else.
Sleep Sleep 1.0 (2020.08.25)
Pauses for a specified NUMBER of time unit (seconds by default).
Usage: sleep.exe NUMBER[UNIT] [-st] [-h] [-V] [--license] [--home]
Options are case-sensitive. Options and values in square brackets are optional.
| Switch | Description |
|---|---|
| -st, –show-time | Show the calculated waiting time. |
| -h, –help | Show this help. |
| -V, –version | Show application version. |
| –license | Display program license. |
| –home | Opens program homepage in the default browser. |
Any combination of real, integer, hexadecimal, or binary numbers. Each number may be followed by a time unit suffix. The total waiting time will be the sum of all the numbers provided.
The decimal separator in real numbers can be . (period) or , (comma).
Hexadecimal numbers must be prefixed with 0x or $ (dollar), eg. 0x0A, $0A.
The letter D at the end of the number is treated as a unit of time (days), so if you want to set the wait time to $0D seconds, you must use $0Ds and not $0D.
Binary numbers must be prefixed with % (percent), eg. %1010.
Maximum waiting time: 232 ms = 49d 17:02:47.295
Timer resolution depends on the operating system and hardware. On my Windows 10: min = 15.625 ms, max = 0.500 ms.
| Unit | Description |
|---|---|
| ms | Millisecond |
| s | Second (default) |
| m | Minute |
| h | Hour |
| d | Day |
| Exit code | Description |
|---|---|
| 0 | OK (no error) |
| 2 | Syntax error |
| 1 | Other error |
sleep 1sleep 3.5msleep "3.5 m"sleep 3m 30ssleep 3500mssleep $ABBAsleep %1010101110111010sleep 12h 12m 42ssleep 2m 50ssleep 3m "-10s"sleep 1.7e+2[jp-insert-uninstall-info-zip]
[jp-insert-license-info-total-free]
Pazera Free MP4 Video Converter is a free program that allows you to convert almost…
Small utility that allows you to quickly change the display resolution
A simple text files analyzer. The program counts the lines of text in the given…
Free WebM to MP3 Converter is an absolutely free program that converts videos downloaded from…