NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

CounterSample.Calculate (CounterSample, CounterSample)

Static functions to calculate the performance value off the samples

[Visual Basic]
Overloads Public Shared Function Calculate( _
   ByVal counterSample As CounterSample, _
   ByVal nextCounterSample As CounterSample _
) As Single
[C#]
public static float Calculate(
   CounterSample counterSample,
   CounterSample nextCounterSample
);
[C++]
public: static float Calculate(
   CounterSample counterSample,
   CounterSample nextCounterSample
);
[JScript]
public static function Calculate(
   counterSample : CounterSample,
   nextCounterSample : CounterSample
) : float;

Parameters

counterSample
Countersample to calculate from.
nextCounterSample
Countersample with time greater than the 'counterSample'

Return Value

Calculated performance value.

See Also

CounterSample Structure | CounterSample Members | System.Diagnostics Namespace | CounterSample.Calculate Overload List