Click or drag to resize

UtilWaitForMilliseconds Method

Pauses for a given interval in milliseconds.

Namespace:  ASCOM.Utilities
Assembly:  ASCOM.Utilities (in ASCOM.Utilities.dll) Version: 3c9121baba46811fe6e53a58a05935662261416d
public void WaitForMilliseconds(
	int Milliseconds


Type: SystemInt32
The number of milliseconds to wait
Repeatedly puts the calling Win32 process to sleep, totally freezing it, for 10 milliseconds, then pumps events so the script or program calling it will receive its normal flow of events, until the pause interval elapses. If the pause interval is 20 milliseconds or less, the sleep interval is reduced to 0, causing the calling Win32 process to give up control to the kernel scheduler and then immediately become eligible for scheduling.
See Also