A single recorded value inside a MeasureBucket
Exemplo n.º 1
0
 public void Collect(long elapsedTicks)
 {
     if (!WasDisposed)
     {
         Measurements[CurrentCount] = new MetricMeasurement(elapsedTicks, _collector.Collect());
         CurrentCount = CurrentCount + 1 < MaxMeasures ?  CurrentCount + 1 : CurrentCount; //WRAP
     }
 }
Exemplo n.º 2
0
 public void Collect(long elapsedTicks)
 {
     if (!WasDisposed)
     {
         Measurements[CurrentCount] = new MetricMeasurement(elapsedTicks, _collector.Collect());
         CurrentCount = CurrentCount + 1 < MaxMeasures ?  CurrentCount + 1 : CurrentCount; //WRAP
     }
         
 }
Exemplo n.º 3
0
 public bool Equals(MetricMeasurement other)
 {
     return(ElapsedTicks == other.ElapsedTicks && MetricValue == other.MetricValue);
 }
Exemplo n.º 4
0
 public bool Equals(MetricMeasurement other)
 {
     return ElapsedTicks == other.ElapsedTicks && Math.Abs(MetricValue - other.MetricValue) < PrecisionTolerance;
 }
Exemplo n.º 5
0
 public bool Equals(MetricMeasurement other)
 {
     return ElapsedTicks == other.ElapsedTicks && MetricValue == other.MetricValue;
 }
 public bool Equals(MetricMeasurement other)
 {
     return(ElapsedTicks == other.ElapsedTicks && Math.Abs(MetricValue - other.MetricValue) < PrecisionTolerance);
 }