Wiki source for CommandSleep

Show raw source

=====Command sleep=====

This command is part of the [[CommandsPosix posix]] extensions and needs to be imported to be available to the shell.
See [[CommandsPosix Posix Commands]]

**sleep** delays execution

**sleep** seconds


Delays execution in the current shell (thread) for the specified time.
Note: unlike the posix sleep command, seconds can be fractional (float).
As with the posix sleep command the delay is approximate, there is no guarantee that the delay will be accurate.

Example, delay for approx 2.5 seconds

sleep 2.5

====Return Value====
Returns 0 if the command executed successfully, 1 if there was an error.
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki