PerceptionTimestamp 类

定义

表示对未来的特定预测,或过去的快照。

将一个 PerceptionTimestamp 实例传递给多个 API 调用可确保它们都基于同一组预测数据返回结果,即使 Windows 提供了改进的预测。 这可确保可以正确关联从这些 API 返回的数据。

public ref class PerceptionTimestamp sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 131072)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class PerceptionTimestamp final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 131072)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class PerceptionTimestamp
Public NotInheritable Class PerceptionTimestamp
继承
Object Platform::Object IInspectable PerceptionTimestamp
属性

Windows 要求

设备系列
Windows 10 (在 10.0.10586.0 - for Xbox, see UWP features that aren't yet supported on Xbox 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v2.0 中引入)

注解

版本历史记录

Windows 版本 SDK 版本 已添加值
1809 17763 SystemRelativeTargetTime

属性

PredictionAmount

对于有关未来的时间戳,获取预测到 TargetTime 之间的时间跨度。

SystemRelativeTargetTime

获取此时间戳的主题的特定时间,该时间以系统相对 QueryPerformanceCounter (QPC) 时间域表示。

TargetTime

获取此时间戳的主题的特定时间。

适用于