Sleep

Last Modified: 1/1/2021

Pauses code execution for 1/60th of a second, or about 16.67 ms, for every <Interval> for NTSC consoles and 1/50th of a second for PAL consoles.

Arguments

NameTypeRequiredDescription
Interval Integer Yes The duration you wish to pause execution.
TvBlank System Identifier No Changes when the Sleep command ends.

Example

Syntax: Sleep <Interval> [,TvBlank]
    While 1
        Locate 1, 1: Print "Hello World!"
        Sleep 1
    Wend

Remarks

The TvBlank option sets the Sleep command to end at the beginning of the vertical blank, otherwise it will end at the beginning of the displaying period.

See Also

Dalt, Halt, Sleep2, Valt, WaitRaster