## Thread::Sleep(int) method


Stops current thread for specified timeout.

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


| Parameter | Type | Description |
| --- | --- | --- |
| millisecondsTimeout | int | [Timeout](../../timeout/) to sleep in milliseconds. |

## See Also

* Class [Thread](../)
* Namespace [System::Threading](../../)
* Library [Aspose.PUB for C++](../../../)
## Thread::Sleep(TimeSpan) method


Stops current thread for specified timeout.

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


| Parameter | Type | Description |
| --- | --- | --- |
| timeout | TimeSpan | [Timeout](../../timeout/) to sleep. |

## See Also

* Class [TimeSpan](../../../system/timespan/)
* Class [Thread](../)
* Namespace [System::Threading](../../)
* Library [Aspose.PUB for C++](../../../)
