System.Diagnostics.CounterSample.Calculate Method

Calculates the performance data of the counter, using two sample points. This method is generally used for calculated performance counter types, such as averages.

Syntax

public static float Calculate (CounterSample counterSample, CounterSample nextCounterSample)

Parameters

counterSample
The System.Diagnostics.CounterSample structure to use as a base point for calculating performance data.
nextCounterSample
The System.Diagnostics.CounterSample structure to use as an ending point for calculating performance data.

Returns

The calculated performance value.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: System.Diagnostics
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0