public void update(long duration) {
    if (duration > 0) {
      reservoir.update(duration);
    }
  }
Add the time duration

@param duration time duration
samza-api/src/main/java/org/apache/samza/metrics/Timer.java