示例#1
0
        private void UpdateCounter(ExPerformanceCounter counter, CounterType counterType)
        {
            int num  = this.values[(int)counterType];
            int num2 = (int)counter.RawValue;

            counter.IncrementBy((long)(num - num2));
            Interlocked.Exchange(ref this.values[(int)counterType], 0);
        }
 // Token: 0x060002A3 RID: 675 RVA: 0x0000FE04 File Offset: 0x0000E004
 public void Increment(ExPerformanceCounter perfCounter, long incrementValue = 1L)
 {
     if (this.perfCounterCollection.ContainsKey(perfCounter))
     {
         perfCounter.IncrementBy(incrementValue);
         this.perfCounterCollection[perfCounter].Item2.AddValue(incrementValue);
         this.perfCounterCollection[perfCounter].Item1.RawValue = this.perfCounterCollection[perfCounter].Item2.Sum;
     }
 }