code: public long restart(String str, PrintWriter writer) {
      long elapsed = this.report(str, writer);
      this.start();
      return elapsed;
    }
docs: Print elapsed time and restart timer.
  
  @param str    Additional prefix string to be printed
  @param writer PrintWriter on which to write output
  @return Number of milliseconds elapsed