code: private void onEnd()
     {
        long result = System.currentTimeMillis() - currentTime.get().poll();
        times.incrementAndGet();
        if (result < min.get())
        {
           min.set(result);
        }
        if (max.get() < result)
        {
           max.set(result);
        }
        total.addAndGet(result);
     }
docs: Refresh the values of the metrics (min, max, total and times)