sleep for platform

Delay for a specified amount of time.

Signature

> sleep {flags} (duration) ...rest

Parameters

  • duration: Time to sleep.
  • ...rest: Additional time.

Input/output types:

inputoutput
nothingnothing

Examples

Sleep for 1sec

> sleep 1sec

Sleep for 3sec

> sleep 1sec 1sec 1sec

Send output after 1sec

> sleep 1sec; echo done