protected void recordSample() { final long sample; if (resetOnSample) { sample = statistic.getAndReset(); } else { sample = statistic.getValue(); } final long now = System.currentTimeMillis(); TimeStampedStatisticValue timedSample = new TimeStampedStatisticImpl(now, sample); history.push(timedSample); }
protected void recordSample() { final long sample; if (resetOnSample) { sample = statistic.getAndReset(); } else { sample = statistic.getValue(); } final long now = System.currentTimeMillis(); TimeStampedStatisticValue timedSample = new TimeStampedStatisticImpl(now, sample); history.push(timedSample); }
protected void recordSample() { final long sample; if (resetOnSample) { sample = statistic.getAndReset(); } else { sample = statistic.getValue(); } final long now = System.currentTimeMillis(); TimeStampedStatisticValue timedSample = new TimeStampedStatisticImpl(now, sample); history.push(timedSample); }