System::Threading::Thread::Sleep method

Thread::Sleep(int) method

Stops current thread for specified timeout.

static void System::Threading::Thread::Sleep(int millisecondsTimeout)
ParameterTypeDescription
millisecondsTimeoutintTimeout to sleep in milliseconds.

See Also

Thread::Sleep(TimeSpan) method

Stops current thread for specified timeout.

static void System::Threading::Thread::Sleep(TimeSpan timeout)
ParameterTypeDescription
timeoutTimeSpanTimeout to sleep.

See Also