Code example for Stopwatch

Methods: stop

0
    watch = Stopwatch.createStarted();
  } 
 
  @After 
  public void after() { 
    watch.stop();
  } 
 
  @Test
  public final void recentChanges() { 
    doRegularTest(bot); 
    doSpecialCharTest(bot); 
  } 
 
  private void prepareWiki(MediaWikiBot bot) {
    log.debug("begin prepare " + watch.elapsed(TimeUnit.MILLISECONDS));
    SimpleArticle a = new SimpleArticle();
    for (int i = 0; i < 2 + 1; i++) {
      String label = getRandom(10);
      for (char c : MediaWikiBot.invalidLabelChars()) {
Contextual code suggestions in your IDE  Get Codota for Java