> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# GetTimestamp

> IGameInputReading::GetTimestamp

# IGameInputReading::GetTimestamp

擷取與 `IGameInputReading` 相關聯的微秒時間戳記。

## 語法

```cpp theme={null}
uint64_t GetTimestamp();
```

### 傳回值

類型：uint64\_t

描述輸入發生時間的微秒時間戳記。

## 備註

在某些情況下，時間戳記不足以區分兩個不同的讀數。您可以將此函式的結果與 [IGameInput::GetCurrentTimeStamp](https://docs.xbox.com/zh-TW/reference/input/gameinput/interfaces/igameinput/methods/igameinput_getcurrenttimestamp.md) 的結果比較，藉此與目前時間進行比較。

## 需求

**標頭：** GameInput.h

[輸入 API 概觀](https://docs.xbox.com/zh-TW/build/core-features/common/input/overviews/input-overview.md)\
[IGameInputReading](https://docs.xbox.com/zh-TW/reference/input/gameinput/interfaces/igameinputreading/igameinputreading.md)\
[IGameInput::GetCurrentTimeStamp.md](https://docs.xbox.com/zh-TW/reference/input/gameinput/interfaces/igameinput/methods/igameinput_getcurrenttimestamp.md)

## 版本歷程記錄

| 版本 | 變更 |
| - | - |
| **v0** | 推出。 |


## Related topics

- [GameInput API 版本控制](https://docs.xbox.com/zh-TW/build/core-features/common/input/overviews/input-versioning.md)
- [IGameInputReading (介面內容)](https://docs.xbox.com/zh-TW/reference/input/gameinput/interfaces/igameinputreading/igameinputreading.md)
- [GetTimestampFrequency](https://docs.xbox.com/zh-TW/reference/graphics/d3d12/interfaces/id3d12commandqueue/methods/id3d12commandqueue_gettimestampfrequency_public.md)
- [IGameInput::GetCurrentTimestamp](https://docs.xbox.com/zh-TW/reference/input/gameinput/interfaces/igameinput/methods/igameinput_getcurrenttimestamp.md)
- [GetShapeSrcTimestamp](https://docs.xbox.com/zh-TW/reference/audio/shapesrccontext/functions/getshapesrctimestamp.md)
