PerceptionTimestampHelper 类

定义

用于处理 PerceptionTimestamp 对象的静态方法。

public ref class PerceptionTimestampHelper abstract 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 PerceptionTimestampHelper 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 static class PerceptionTimestampHelper
Public Class PerceptionTimestampHelper
继承
Object Platform::Object IInspectable PerceptionTimestampHelper
属性

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 FromSystemRelativeTargetTime

方法

FromHistoricalTargetTime(DateTime)

获取一个以过去指定时间为目标的时间戳。

FromSystemRelativeTargetTime(TimeSpan)

获取以指定系统相对时间为目标的时间戳,该时间戳在 QPC) 时间域中表示的系统相对 QueryPerformanceCounter (。

适用于