private float GetPerfCounterValue_DeltaValue(IPerformanceCounterProxy proxy, ref float prevValue) { var currentPerfCounterVal = proxy.NextValue(); var prevPerfCounterVal = Interlocked.Exchange(ref prevValue, currentPerfCounterVal); return(currentPerfCounterVal - prevPerfCounterVal); }
private float GetPerfCounterValue_Raw(IPerformanceCounterProxy proxy) { return(proxy.NextValue()); }