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
time
TimeSpanThe amount of time to delay.
allowThreadYield
boolTrue 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
intThe number of microseconds to delay.
allowThreadYield
boolTrue 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)