Sleep2

Last Modified: 1/1/2021

Pauses code execution for horizontal blank for every <Interval>.

Arguments

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

Example

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

Remarks

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

See Also

Dalt, Halt, Sleep, Valt, WaitRaster