Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

PerceptionTimestampHelper.FromSystemRelativeTargetTime(TimeSpan) Method

Definition

Namespace:
Windows.Perception

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

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

Requirements Description
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


Feedback

Was this page helpful?