Sleep(time)
time
. This time interval must be specified in milliseconds.
Sleep()
does the same as Wait() except that Sleep()
always operates
in milliseconds whereas Wait() uses ticks by default.
Sleep(4000)The code above halts the script execution for 4 seconds.