UtilWaitForMilliseconds Method |
Pauses for a given interval in milliseconds.
Namespace: ASCOM.UtilitiesAssembly: ASCOM.Utilities (in ASCOM.Utilities.dll) Version: 6.0.0.0 (6.6.9999.9999)
Syntaxpublic void WaitForMilliseconds(
int Milliseconds
)
Public Sub WaitForMilliseconds (
Milliseconds As Integer
)
public:
virtual void WaitForMilliseconds(
int Milliseconds
) sealed
Parameters
- Milliseconds Int32
- The number of milliseconds to wait
RemarksRepeatedly 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