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

Retrieves the microsecond timestamp associated with the `IGameInputReading`.

## Syntax

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

### Return value

Type: uint64\_t

The microsecond timestamp describing when the input was made.

## Remarks

There are cases where a time stamp is not sufficient to differentiate between two separate readings. You can compare the results of this function with the current time by comparing the results from [IGameInput::GetCurrentTimeStamp](https://docs.xbox.com/reference/input/gameinput/interfaces/igameinput/methods/igameinput_getcurrenttimestamp.md).

## Requirements

**Header:** GameInput.h

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

## Version History

| Version | Changes |
| - | - |
| **v0** | Introduced. |


## Related topics

- [IGameInputReading (Interface contents)](https://docs.xbox.com/reference/input/gameinput/interfaces/igameinputreading/igameinputreading.md)
- [GameInput API Versioning](https://docs.xbox.com/build/core-features/common/input/overviews/input-versioning.md)
- [GetTimestampFrequency](https://docs.xbox.com/reference/graphics/d3d12/interfaces/id3d12commandqueue/methods/id3d12commandqueue_gettimestampfrequency_public.md)
- [IGameInput::GetCurrentTimestamp](https://docs.xbox.com/reference/input/gameinput/interfaces/igameinput/methods/igameinput_getcurrenttimestamp.md)
- [GetShapeDmaTimestamp](https://docs.xbox.com/reference/audio/shapedmacontext/functions/getshapedmatimestamp.md)
