public void duration(long duration){
  min=Math.min(min,duration);
  max=Math.max(max,duration);
  sum+=duration;
  cnt++;
}

public void duration ( long duration ) { min = Math . min ( min , duration ) ; max = Math . max ( max , duration ) ; sum += duration ; cnt ++ ; }
adds this value to statistics .
