CompactContextSwitchEvent.SwitchInThreadWaitTime Property
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 the wait time for the thread currently planned to be switched in.
public Nullable<TimeSpan> SwitchInThreadWaitTime { get; }
member this.SwitchInThreadWaitTime : Nullable<TimeSpan>
Public ReadOnly Property SwitchInThreadWaitTime As Nullable(Of TimeSpan)
Property Value
Remarks
The SwitchInThread used by this event is planned, but occasionally a last-moment change results in another thread actually switching in instead, in which case this property is not accurate.
This value is not present when the thread switching out is the idle thread.
This value is always zero when when the thread currently planned to be switched in is the idle thread.
This value cannot be larger than MaxSwitchInThreadWaitTime times ProcessorUsageTimerFrequency ticks due to the the compact context switch event format. If this value is MaxSwitchInThreadWaitTime times ProcessorUsageTimerFrequency ticks , it was likely a larger value capped to that constant.