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

# GetClockCalibration

> This method samples the CPU and GPU timestamp counters at the same moment in time.

This method samples the CPU and GPU timestamp counters at the same moment in time.

## Syntax

```cpp theme={null}
HRESULT GetClockCalibration(
    UINT64  pGpuTimestamp,
    UINT64  pCpuTimestamp
)
```

### Parameters

*pGpuTimestamp \[out]*\
Type: UINT64 \*

The value of the GPU timestamp counter.

*pCpuTimestamp \[out]*\
Type: UINT64 \*

The value of the CPU timestamp counter.

### Return value

Type: HRESULT

This method returns one of the [Direct3D 12 Return Codes](https://learn.microsoft.com/en-us/windows/desktop/direct3d12/d3d12-graphics-reference-returnvalues).

## Remarks

For more information, refer to [Timing](https://learn.microsoft.com/en-us/windows/desktop/direct3d12/timing).

## Requirements

**Header:** d3d12\_xs.h or d3d12\_x.h\
**Library:** d3d12\_xs.lib or d3d12\_x.lib\
**Supported Platforms**: XBOX Series consoles and XBOX One family

## See Also

[ID3D12CommandQueue](/reference/graphics/d3d12_xs/interfaces/ID3D12CommandQueue/id3d12commandqueue_xs)


## Related topics

- [GetShapeEqCompDelayElement5](/reference/audio/shapeeqcompcontext/functions/getshapeeqcompdelayelement5.md)
- [GetShapeEqCompDelayElement6](/reference/audio/shapeeqcompcontext/functions/getshapeeqcompdelayelement6.md)
- [GetShapeEqCompDelayElement7](/reference/audio/shapeeqcompcontext/functions/getshapeeqcompdelayelement7.md)
- [GetShapeEqCompDelayElement2](/reference/audio/shapeeqcompcontext/functions/getshapeeqcompdelayelement2.md)
- [GetShapeEqCompDelayElement3](/reference/audio/shapeeqcompcontext/functions/getshapeeqcompdelayelement3.md)
