Skip to main content
This method samples the CPU and GPU timestamp counters at the same moment in time.

Syntax

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.

Remarks

For more information, refer to 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
Last modified on August 20, 2026