Programs

Sleep for Windows

[jp-insert-prog-spec-table]

Download

[jp-insert-download-block]

Description

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]

Screenshots

Usage

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.

Options

Switch Description
Show the calculated waiting time.
Show this help.
Show application version.
Display program license.
Opens program homepage in the default browser.

NUMBER

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.

Time units

UnitDescription
Millisecond
Second (default)
Minute
Hour
Day

Exit codes

Exit codeDescription
OK (no error)
Syntax error
Other error

Examples

  1. Pause for 1 second:
    sleep 1

  2. Pause for 3.5 minutes:
    sleep 3.5m
    sleep "3.5 m"
    sleep 3m 30s
    sleep 3500ms

  3. Pause for 12h 12m 42s:
    sleep $ABBA
    sleep %1010101110111010
    sleep 12h 12m 42s

  4. Pause for 2 minutes and 50 seconds:
    sleep 2m 50s
    sleep 3m "-10s"
    sleep 1.7e+2

How to uninstall?

[jp-insert-uninstall-info-zip]

End User License Agreement

[jp-insert-license-info-total-free]

Jacek

Recent Posts

FUPX

FUPX is an advanced graphical interface for the UPX (Ultimate Packer for eXecutables). It allows…

1 year ago

Rozeta

Rozeta is a program that plots rose diagrams commonly used in geology.

2 years ago

Pazera Free MP4 Video Converter

Pazera Free MP4 Video Converter is a free program that allows you to convert almost…

2 years ago

QuickChangeResolution

Small utility that allows you to quickly change the display resolution

3 years ago

TxtAn – Text Analyzer

A simple text files analyzer. The program counts the lines of text in the given…

3 years ago

Free WebM to MP3 Converter

Free WebM to MP3 Converter is an absolutely free program that converts videos downloaded from…

3 years ago