seconds[currentSecond++] = stats;
if (currentSecond == MAX_SECONDS) {
// The we've finished filling the seconds, so reset the index
// and roll the seconds statistics into a new cumulative statistic for the last minute ...
currentSecond = 0;
Statistics cumulative = statisticsFor(seconds);
minutes[currentMinute++] = cumulative;
if (currentMinute == MAX_MINUTES) {
// The we've finished filling the minutes, so reset the index
// and roll the minutes statistics into a new cumulative statistic for the last hour ...
currentMinute = 0;