Thread..::..Sleep Method (Int32)
Suspends the current thread for the specified number of milliseconds.
Implemented as a loop checking timeout each iteration.
Please note maximum 1e7 iterations
Namespace:
System.ThreadingAssembly: Bridge (in Bridge.dll)
Syntax
[TemplateAttribute] public static void Sleep( int millisecondsTimeout )
<TemplateAttribute> _ Public Shared Sub Sleep ( _ millisecondsTimeout As Integer _ )
[TemplateAttribute] public: static void Sleep( int^ millisecondsTimeout )
Parameters
- millisecondsTimeout
- Type: System..::..Int32
The number of milliseconds for which the thread is suspended. Should be positive or -1. -1 works the same as 0 (not Infinite)