Welcome to jBASE's new documentation site! Many answers to your questions can be found by searching the Knowledgebase or viewing the jBASE Documentation. We also have a Google Group for peer discussion about jBASE. If you are unable to find the information you are looking for, jBASE Support will be glad to assist in resolving your technical problems. Enjoy and please provide comments and feedback .

How can we help you?



Allows the program to pause execution for a specified number of milliseconds. It takes the general form: 

MSLEEP {milliseconds}

Where milliseconds must be an integer, specifying the number of milliseconds to sleep. In the absence of parameters, a default time of 1 millisecond will be assumed.


If the debugger is invoked while a program is sleeping and then execution continued, the user will be prompted: Continue with SLEEP (Y/N) ?

If "N" is the response, the program will continue at the next statement after the MSLEEP.

An example of use is as: 

*To sleep for 10 seconds
MSLEEP 10000

* 40 winks...
MSLEEP 40000

Go back to jBASE BASIC.

Was this article helpful?