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

# 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](https://docs.xbox.com/ja-jp/reference/graphics/d3d12_xs/interfaces/ID3D12CommandQueue/id3d12commandqueue_xs.md)


## Related topics

- [Get Time](https://docs.xbox.com/api-reference/title-wide-data-management/get-time.md)
- [時刻の取得](https://docs.xbox.com/ja-jp/services/playfab/api-references/rest/server/title-wide-data-management/get-time.md)
- [Get Segments](https://docs.xbox.com/api-reference/segments/get-segments.md)
- [Get Policy](https://docs.xbox.com/api-reference/authentication/get-policy.md)
- [Get Group](https://docs.xbox.com/api-reference/groups/get-group.md)
