C# 클래스 WebApplications.Utilities.Performance.PerformanceCounterExtensions

파일 보기 프로젝트 열기: webappsuk/CoreLibraries

공개 메소드들

메소드 설명
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