C# Класс WebApplications.Utilities.Performance.PerformanceCounterExtensions

Показать файл Открыть проект

Открытые методы

Метод Описание
GetElapsedTime ( CounterSample oldSample, CounterSample newSample ) : System.Duration

Gets the elapsed time between two samples

SafeNextValue ( [ counter ) : float

Safely gets the next value of a performance counter, by ensuring that a minimum duration has passed since the last next value was requested.

Описание методов

GetElapsedTime() публичный статический Метод

Gets the elapsed time between two samples
public static GetElapsedTime ( CounterSample oldSample, CounterSample newSample ) : System.Duration
oldSample System.Diagnostics.CounterSample The old sample.
newSample System.Diagnostics.CounterSample The new sample.
Результат System.Duration

SafeNextValue() публичный статический Метод

Safely gets the next value of a performance counter, by ensuring that a minimum duration has passed since the last next value was requested.
public static SafeNextValue ( [ counter ) : float
counter [ The counter.
Результат float