Class DelayHelper
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
timeTimeSpanThe amount of time to delay.
allowThreadYieldboolTrue 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
microsecondsintThe number of microseconds to delay.
allowThreadYieldboolTrue 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)