> ## 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](/reference/graphics/d3d12_xs/interfaces/ID3D12CommandQueue/id3d12commandqueue_xs)


## Related topics

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