Ejemplo n.º 1
0
        /// <inheritdoc />
        public TimerValue GetValue(bool resetMetric = false)
        {
            var total = resetMetric ? _totalRecordedTime.GetAndReset() : _totalRecordedTime.GetValue();

            return(new TimerValue(_meter.GetValue(resetMetric), _histogram.GetValue(resetMetric), _activeSessionsCounter.GetValue(), total,
                                  TimeUnit.Nanoseconds));
        }
Ejemplo n.º 2
0
 /// <inheritdoc />
 public TimerValue GetValue(bool resetMetric = false)
 {
     return(new TimerValue(
                _meter.GetValue(resetMetric),
                _histogram.GetValue(resetMetric),
                _activeSessionsCounter.GetValue(),
                TimeUnit.Nanoseconds));
 }
Ejemplo n.º 3
0
        /// <inheritdoc />
        public TimerValue GetValue(bool resetMetric = false)
        {
            var activeSessions = resetMetric
                ? _activeSessionsCounter.GetAndReset()
                : _activeSessionsCounter.GetValue();

            return(new TimerValue(
                       _meter.GetValue(resetMetric),
                       _histogram.GetValue(resetMetric),
                       activeSessions,
                       TimeUnit.Nanoseconds));
        }