Edit

Share via


ITraceTimestampContext Interface

Definition

Defines the context needed to interpret a TraceTimestampValue.

public interface ITraceTimestampContext
type ITraceTimestampContext = interface
Public Interface ITraceTimestampContext

Properties

ClockType

Gets the clock type used by the trace.

IsPartial

Gets a value that indicates whether the context is being used with a trace timestamp that is only accurate to nanoseconds, and a full TraceTimestampValue value is not available.

ReferenceTime

Gets an absolute time that is know to match up exactly with the ReferenceValue.

ReferenceValue

Gets an original timestamp value that is known to match up exactly with the ReferenceTime.

Methods

GetApproximateValue(Timestamp)

Gets a TraceTimestampValue that approximates a Timestamp within the trace.

GetDateTimeOffset(TraceTimestampValue)

Gets the absolute clock time for an original timestamp in an event header or payload.

GetRelativeTimestamp(TraceTimestampValue)

Gets a trace-relative timestamp from an original timestamp in an event header or payload.

Extension Methods

Create(ITraceTimestampContext, TraceTimestampValue)
CreateApproximate(ITraceTimestampContext, Timestamp)
CreateApproximate(ITraceTimestampContext, DateTimeOffset)
CreateApproximate(ITraceTimestampContext, Int64)
CreateApproximateTraceDuration(ITraceTimestampContext, Duration)
CreateApproximateTraceDuration(ITraceTimestampContext, Int64)
CreateMaxTraceDuration(ITraceTimestampContext)
CreateMaxValue(ITraceTimestampContext)
CreateMinTraceDuration(ITraceTimestampContext)
CreateMinValue(ITraceTimestampContext)
CreateTraceDuration(ITraceTimestampContext, TraceTimestampValue)
CreateZero(ITraceTimestampContext)
CreateZeroTraceDuration(ITraceTimestampContext)

Applies to