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

> 此方法會在同一時間點取樣 CPU 和 GPU 時間戳記計數器。

此方法會在同一時間點取樣 CPU 和 GPU 時間戳記計數器。

## 語法

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

### 參數

*pGpuTimestamp \[out]*\
類型：UINT64 \*

GPU 時間戳記計數器的值。

*pCpuTimestamp \[out]*\
類型：UINT64 \*

CPU 時間戳記計數器的值。

### 傳回值

類型：HRESULT

此方法會傳回其中一個 [Direct3D 12 傳回碼](https://learn.microsoft.com/en-us/windows/desktop/direct3d12/d3d12-graphics-reference-returnvalues)。

## 備註

如需詳細資訊，請參閱[計時](https://learn.microsoft.com/en-us/windows/desktop/direct3d12/timing)。

## 需求

**標頭：** d3d12\_xs.h 或 d3d12\_x.h\
**程式庫：** d3d12\_xs.lib 或 d3d12\_x.lib\
**支援的平台**：XBOX Series 主機和 XBOX One 系列主機

## 另請參閱

[ID3D12CommandQueue](/zh-TW/reference/graphics/d3d12_xs/interfaces/ID3D12CommandQueue/id3d12commandqueue_xs)


## Related topics

- [Get Time](/api-reference/title-wide-data-management/get-time.md)
- [取得時間](/zh-TW/services/playfab/api-references/rest/client/title-wide-data-management/get-time.md)
- [XAG 106:螢幕朗讀](/zh-TW/build/game-principles/accessibility/xag-deep-dives/xag-106-screen-narration.md)
- [Get Segments](/api-reference/segments/get-segments.md)
- [Get Policy](/api-reference/authentication/get-policy.md)
