code: public long report(String str, PrintWriter writer) {
      long elapsed = this.report();
      writer.println(str + " Time elapsed: " + (elapsed) + " ms");
      return elapsed;
    }
docs: Print elapsed time (without stopping timer).
  
  @param str    Additional prefix string to be printed
  @param writer PrintWriter on which to write output
  @return Number of milliseconds elapsed