Code example for Stopwatch

0
 
  protected boolean needsNewline;
 
  public ProgressMonitorImpl() { 
    this.logger = LoggerFactory.getLogger(getClass());
    this.stopwatch = new Stopwatch();
  } 
 
  protected void maybePrintln() { 
    if (needsNewline) {
      System.out.println();
      needsNewline = false;
    } 
  } 
 
  @Override 
  public void start() { 
    stopwatch.reset().start();
    if (logger.isDebugEnabled()) { 
      logger.debug("START"); 
Stop searching for code, let great code find you!  Add Codota to your java IDE