11.04.2013 Views

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

SLEEP<br />

Syntax<br />

SLEEP [hh:mm[:ss]] [seconds]<br />

Synonym<br />

RQM<br />

Description<br />

The <strong>UniBasic</strong> SLEEP and RQM commands halt program execution for the time<br />

specified in seconds, or until the time specified.<br />

Tip: You can use SLEEP or RQM if you want a processing or reporting program to<br />

wait until midnight before running to better use system resources. SLEEP is also<br />

useful when waiting for the release of locked system resources.<br />

Note: The original purpose of RQM was to release remaining execution time<br />

reserved for a program, allowing other programs to use the time. If a particular<br />

program is very computation-intensive, RQM could improve overall system<br />

performance.<br />

Parameters<br />

The following table describes each parameter of the syntax.<br />

Parameter Description<br />

1-744 <strong>UniBasic</strong> <strong>Commands</strong> <strong>Reference</strong><br />

hh:mm:ss Specifies the time to end sleep in hours, minutes, and (optional) seconds.<br />

You must surround the time in quotation marks.<br />

seconds Specifies the number of seconds to sleep.<br />

SLEEP Parameters

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!