public void printData(PrintWriter pw)
   {
      long lmin = min.get();
      if (lmin == Long.MAX_VALUE)
      {
         lmin = -1;
      }
      long lmax = max.get();
      long ltotal = total.get();
      long ltimes = times.get();
      float favg = ltimes == 0 ? 0f : (float)ltotal / ltimes;
      pw.print(lmin);
      pw.print(',');
      pw.print(lmax);
      pw.print(',');
      pw.print(ltotal);
      pw.print(',');
      pw.print(favg);
      pw.print(',');
      pw.print(ltimes);
   }
public void printData ( PrintWriter pw ) { long lmin = min . get ( ) ; if ( lmin == Long . MAX_VALUE ) { lmin = - 1 ; } long lmax = max . get ( ) ; long ltotal = total . get ( ) ; long ltimes = times . get ( ) ; float favg = ltimes == 0 ? 0f : ( float ) ltotal / ltimes ; pw . print ( lmin ) ; pw . print ( ',' ) ; pw . print ( lmax ) ; pw . print ( ',' ) ; pw . print ( ltotal ) ; pw . print ( ',' ) ; pw . print ( favg ) ; pw . print ( ',' ) ; pw . print ( ltimes ) ; }
Print the current snapshot of the metrics and evaluate the average value