Sleep()

Thread::Sleep(int) method

Stops current thread for specified timeout.

static void System::Threading::Thread::Sleep(int millisecondsTimeout)

Arguments

ParameterTypeDescription
millisecondsTimeoutintTimeout to sleep in milliseconds.

Thread::Sleep(TimeSpan) method

Stops current thread for specified timeout.

static void System::Threading::Thread::Sleep(TimeSpan timeout)

Arguments

ParameterTypeDescription
timeoutTimeSpanTimeout to sleep.

See Also