> ## 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

入力が行われた時刻を表すマイクロ秒のタイムスタンプ。

## 解説

タイムスタンプだけでは 2 つの異なる読み取りを区別するのに十分でない場合があります。この関数の結果を [IGameInput::GetCurrentTimeStamp](https://docs.xbox.com/ja-jp/reference/input/gameinput/interfaces/igameinput/methods/igameinput_getcurrenttimestamp.md) の結果と比較することで、現在時刻と比較できます。

## 要件

**ヘッダー:** GameInput.h

[Input API の概要](https://docs.xbox.com/ja-jp/build/core-features/common/input/overviews/input-overview.md)\
[IGameInputReading](https://docs.xbox.com/ja-jp/reference/input/gameinput/interfaces/igameinputreading/igameinputreading.md)\
[IGameInput::GetCurrentTimeStamp.md](https://docs.xbox.com/ja-jp/reference/input/gameinput/interfaces/igameinput/methods/igameinput_getcurrenttimestamp.md)

## バージョン履歴

| バージョン | 変更点 |
| - | - |
| **v0** | 導入。 |


## Related topics

- [GameInput API のバージョン管理](https://docs.xbox.com/ja-jp/build/core-features/common/input/overviews/input-versioning.md)
- [GetTimestampFrequency](https://docs.xbox.com/ja-jp/reference/graphics/d3d12/interfaces/id3d12commandqueue/methods/id3d12commandqueue_gettimestampfrequency_public.md)
- [IGameInput::GetCurrentTimestamp](https://docs.xbox.com/ja-jp/reference/input/gameinput/interfaces/igameinput/methods/igameinput_getcurrenttimestamp.md)
- [GetShapeDmaTimestamp](https://docs.xbox.com/ja-jp/reference/audio/shapedmacontext/functions/getshapedmatimestamp.md)
- [GetShapeSrcTimestamp](https://docs.xbox.com/ja-jp/reference/audio/shapesrccontext/functions/getshapesrctimestamp.md)
