Share via


PerceptionTimestampHelper.FromHistoricalTargetTime(DateTime) Method

Definition

Gets a timestamp that targets the specified time in the past.

public:
 static PerceptionTimestamp ^ FromHistoricalTargetTime(DateTime targetTime);
 static PerceptionTimestamp FromHistoricalTargetTime(DateTime const& targetTime);
public static PerceptionTimestamp FromHistoricalTargetTime(System.DateTimeOffset targetTime);
function fromHistoricalTargetTime(targetTime)
Public Shared Function FromHistoricalTargetTime (targetTime As DateTimeOffset) As PerceptionTimestamp

Parameters

targetTime
DateTime DateTimeOffset

The moment in the past to target with the timestamp.

Returns

The timestamp.

Remarks

If you are creating this timestamp to relate to other high-precision events on the system, you should instead use the FromSystemRelativeTargetTime method, which operates in the QueryPerformanceCounter (QPC) time domain.

Applies to