Modifier

Partager via


ITraceTimestampContext.GetApproximateValue(Timestamp) Method

Definition

Gets a TraceTimestampValue that approximates a Timestamp within the trace.

public Microsoft.Windows.EventTracing.TraceTimestampValue GetApproximateValue (Microsoft.Windows.EventTracing.Timestamp timestamp);
abstract member GetApproximateValue : Microsoft.Windows.EventTracing.Timestamp -> Microsoft.Windows.EventTracing.TraceTimestampValue

Parameters

timestamp
Timestamp

The relative timestamp for which to get an approximate TraceTimestampValue.

Returns

A TraceTimestampValue that approximates the Timestamp within the trace.

Remarks

Depending on ClockType, TraceTimestampValue may be more or less precise than timestamp. If TraceTimestampValue is more precise than Timestamp, multiple TraceTimestampValues may correspond to a single Timestamp, and this method will pick one of them. If TraceTimestampValue is less precise than Timestamp, this method will pick the closest TraceTimestampValue to that Timestamp. It is also possible that, due to the clock's frequency, no TraceTimestampValue will correspond to the Timestamp, and this method will pick a TraceTimestampValue that corresponds to a nearby Timestamp.

Applies to