System.Diagnostics.CounterSample
Defines a structure that holds the raw data for a performance counter.
Defines an empty, uninitialized performance counter sample of type NumberOfItems32.
Gets an optional, base raw value for the counter.
Gets the raw counter frequency.
Gets the counter's time stamp.
Gets the performance counter type.
Gets the raw value of the counter.
Gets the raw system frequency.
Gets the raw time stamp.
Gets the raw, high-fidelity time stamp.
public CounterSample(long rawValue, long baseValue, long counterFrequency, long systemFrequency, long timeStamp, long timeStamp100nSec, PerformanceCounterType counterType)
Initializes a new instance of the CounterSample structure and sets the CounterTimeStamp property to 0 (zero).
public CounterSample(long rawValue, long baseValue, long counterFrequency, long systemFrequency, long timeStamp, long timeStamp100nSec, PerformanceCounterType counterType, long counterTimeStamp)
Initializes a new instance of the CounterSample structure and sets the CounterTimeStamp property to the value that is passed in.
Calculates the performance data of the counter, using a single sample point. This method is generally used for uncalculated performance counter types.
Calculates the performance data of the counter, using two sample points. This method is generally used for calculated performance counter types, such as averages.
Returns a value that indicates whether two CounterSample structures are equal.
Returns a value that indicates whether two CounterSample structures are not equal.
Indicates whether the specified CounterSample structure is equal to the current CounterSample structure.