code: public void addQueryTime(long time){
          if (time < min || min == 0) min = time;
  
          if (time > max || max == 0) max = time;
  
          avg = Math.round((avg + (time - avg) / (double) (++count)));
  
          total += time;
      }
docs: Whenever this query was executed, add execution time with this method. This class will then recalculate all statistics.
  
  @param time time in milliseconds it took to execute the query