Exemplo n.º 1
0
 public TimeMetric(int indexInCollection, TimeMetricManager metricAdjuster, int otherMetricCount)
 {
     this.m_indexInCollection      = indexInCollection;
     this.m_timer                  = new Timer();
     this.m_totalDurationMs        = 0L;
     this.m_isRunning              = false;
     this.m_otherMetricAdjustments = new long[otherMetricCount];
     this.m_metricAdjuster         = metricAdjuster;
 }
Exemplo n.º 2
0
 public TimeMetric(TimeMetric other)
 {
     this.m_indexInCollection      = other.m_indexInCollection;
     this.m_timer                  = new Timer();
     this.m_totalDurationMs        = other.m_totalDurationMs;
     this.m_isRunning              = false;
     this.m_otherMetricAdjustments = (long[])other.m_otherMetricAdjustments.Clone();
     this.m_metricAdjuster         = other.m_metricAdjuster;
 }
 public ExecutionLogContext(IJobContext jobContext)
 {
     this.m_activeScaleCaches.Push(new ScaleCacheInfo(-2147483648));
     this.m_jobContext = jobContext;
     if (this.m_jobContext != null)
     {
         this.m_metricManager = new TimeMetricManager(ExecutionLogContext.TimeMetricCount);
     }
 }