Ejemplo n.º 1
0
 private void Add(ref long currentDurationMs, long elapsedTimeMs)
 {
     if (currentDurationMs == -2)
     {
         currentDurationMs = 0L;
     }
     currentDurationMs += ExecutionLogContext.TimerMeasurementAdjusted(elapsedTimeMs);
 }
Ejemplo n.º 2
0
 public void Subtract(TimeMetric other)
 {
     m_totalDurationMs = ExecutionLogContext.TimerMeasurementAdjusted(m_totalDurationMs - other.m_totalDurationMs);
     for (int i = 0; i < m_otherMetricAdjustments.Length; i++)
     {
         long durationMs = m_otherMetricAdjustments[i] - other.m_otherMetricAdjustments[i];
         m_otherMetricAdjustments[i] = ExecutionLogContext.TimerMeasurementAdjusted(durationMs);
     }
 }
Ejemplo n.º 3
0
 public void AddTime(long durationMs)
 {
     durationMs = ExecutionLogContext.TimerMeasurementAdjusted(durationMs);
     m_metricAdjuster.UpdateTimeMetricAdjustments(durationMs, m_otherMetricAdjustments);
     m_totalDurationMs += durationMs;
 }