PerceptionTimestampHelper.FromSystemRelativeTargetTime(TimeSpan) Method

Definition

Gets a timestamp that targets the specified system-relative time, represented in the system-relative QueryPerformanceCounter (QPC) time domain.

public:
 static PerceptionTimestamp ^ FromSystemRelativeTargetTime(TimeSpan targetTime);
 static PerceptionTimestamp FromSystemRelativeTargetTime(TimeSpan const& targetTime);
public static PerceptionTimestamp FromSystemRelativeTargetTime(System.TimeSpan targetTime);
function fromSystemRelativeTargetTime(targetTime)
Public Shared Function FromSystemRelativeTargetTime (targetTime As TimeSpan) As PerceptionTimestamp

Parameters

targetTime
TimeSpan TimeSpan

The system-relative moment in QPC time to target with the timestamp.

Returns

The timestamp.

Windows requirements

Device family
Windows 10, version 1809 (introduced in 10.0.17763.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v7.0)

Remarks

The targetTime parameter uses 100ns interval QPC time. For more information on QPC time, see Acquiring high-resolution time stamps.

Applies to