# MSLEEP

Updated: 11/30/2021, 7:00:45 PM
Created: 11/30/2021, 7:00:45 PM
Last Updated By: Jake Tuttle
Read Time: 1 minute(s)

Tags: program execution

# Description

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

MSLEEP {milliseconds}
1

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.

# Note

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
1
2
3
4
5

Go back to jBASE BASIC

Go back to Programmers' Reference Guide