Table of Contents

Class DelayHelper

Namespace
System.Device
Assembly
System.Diagnostics.Stopwatch.dll

Helpers for short waits.

public static class DelayHelper
Inheritance
DelayHelper
Inherited Members

Methods

Delay(TimeSpan, bool)

Delay for at least the specified time.

public static void Delay(TimeSpan time, bool allowThreadYield)

Parameters

time TimeSpan

The amount of time to delay.

allowThreadYield bool

True to allow yielding the thread. If this is set to false, on single-proc systems this will prevent all other code from running.

DelayMicroseconds(int, bool)

Delay for at least the specified microseconds.

public static void DelayMicroseconds(int microseconds, bool allowThreadYield)

Parameters

microseconds int

The number of microseconds to delay.

allowThreadYield bool

True to allow yielding the thread. If this is set to false, on single-proc systems this will prevent all other code from running.

DelayMilliseconds(int, bool)

Delay for at least the specified milliseconds

public static void DelayMilliseconds(int milliseconds, bool allowThreadYield)

Parameters

milliseconds int

The number of milliseconds to delay.

allowThreadYield bool

True to allow yielding the thread. If this is set to false, on single-proc systems this will prevent all other code from running.