PerceptionTimestampHelper.FromHistoricalTargetTime(DateTime) Method
Definition
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 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.