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

# IGameInputReading::GetTimestamp

> IGameInputReading::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](/reference/input/gameinput/interfaces/igameinput/methods/igameinput_getcurrenttimestamp).

## Requirements

**Header:** GameInput.h

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

## Version History

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


## Related topics

- [GameInput API versioning](/build/core-features/common/input/overviews/input-versioning.md)
- [IGameInputReading](/reference/input/gameinput/interfaces/igameinputreading/igameinputreading.md)
- [IGameInput::GetCurrentTimestamp](/reference/input/gameinput/interfaces/igameinput/methods/igameinput_getcurrenttimestamp.md)
- [IGameInputReading::GetSequenceNumber](/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_getsequencenumber.md)
- [IGameInput::GetTemporalReading](/reference/input/gameinput/deprecated/interfaces/igameinput/methods/igameinput_gettemporalreading.md)
