Thread.Sleep Method
Puts the thread to sleep for the specified amount of time. By default, WakeEarly is False.
Syntax
Thread.Sleep MilliSeconds, WakeEarly
MilliSeconds
Integer
WakeEarly
Boolean
If it is not set to True, the thread will be put to sleep for the full amount of time specified by MilliSeconds. If you set WakeEarly to True, the thread can be resumed early. It will wake up early if there are no other threads able to execute.