## Thread::Sleep(int) method


在指定的超时时间内停止当前线程。

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


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| millisecondsTimeout | int | [Timeout](../../timeout/) 用于以毫秒为单位的睡眠。 |

## 另见

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


在指定的超时时间内停止当前线程。

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


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| timeout | TimeSpan | [Timeout](../../timeout/) 用于睡眠。 |

## 另见

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