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

# GetTimestampFrequency

> 此方法用來判斷 GPU 時間戳記計數器遞增的速率。

此方法用來判斷 GPU 時間戳記計數器遞增的速率。

## 語法

```cpp theme={null}
HRESULT GetTimestampFrequency(
    UINT64  pFrequency
)
```

### 參數

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

GPU 時間戳記計數器的頻率 (以刻度/秒為單位)。

### 傳回值

類型：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

- [GetShapeFiltVolFrequency](/zh-TW/reference/audio/shapefiltvolcontext/functions/getshapefiltvolfrequency.md)
- [GetShapeFiltVolFrequencyTarget](/zh-TW/reference/audio/shapefiltvolcontext/functions/getshapefiltvolfrequencytarget.md)
- [ShapeFiltVolContext](/zh-TW/reference/audio/shapefiltvolcontext/shapefiltvolcontext_members.md)
- [SetShapeFiltVolFrequency](/zh-TW/reference/audio/shapefiltvolcontext/functions/setshapefiltvolfrequency.md)
- [SetShapeFiltVolFrequencyTarget](/zh-TW/reference/audio/shapefiltvolcontext/functions/setshapefiltvolfrequencytarget.md)
