System.Diagnostics.CounterSampleCalculator.ComputeCounterValue Method

Computes the calculated value of a single raw counter sample.

Syntax

public static float ComputeCounterValue (CounterSample newSample)

Parameters

newSample
A System.Diagnostics.CounterSample that indicates the most recent sample the system has taken.

Returns

A floating-point representation of the performance counter's calculated value.

Remarks

Requirements

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