====== Delay ======
''Delay time''
| //time// | Time interval (variable or constant up to Long type value) |
''Delay'' delays program execution for the specified time in milliseconds. The
''Delay'' command is best used for small amounts of time. We recommend
not using it for time measurements and other time-critical applications, as
the actual delay time can vary depending on other running tasks.
Delay 10 ' Delay for about 10 ms.
Delay 200 ' Delay for about 200 ms.
''Delay'' is implemented as the following subroutine.
Sub Delay(dl As long)
dl1 var Long
dl2 var Integer
For dl1=0 To dl
For dl2=0 To 1
Nop
Nop
Nop
Next
Next
End Sub
[[cubloc:index#system_library:|Go CUBLOC home]]