public void run(){
  TextAnnotation ta1=tab.createTextAnnotation(TEST_INPUT);
{
    try {
      view=getView(ta1);
    }
 catch (    AnnotatorException e) {
      e.printStackTrace();
      fail(e.getMessage());
    }
    assertTrue(view != null);
  }
  long start=System.currentTimeMillis();
  for (int i=0; i < duration; i++) {
    TextAnnotation ta=tab.createTextAnnotation(TEST_INPUT);
    try {
      view=getView(ta);
    }
 catch (    AnnotatorException e) {
      e.printStackTrace();
      fail(e.getMessage());
    }
    for (    Constituent c : view.getConstituents()) {
      if (!entities.contains(c.toString()))       error="No entity named \"" + c.toString() + "\"";
    }
  }
  if (error == null)   averageRunTime=(System.currentTimeMillis() - start) / duration;
}

public void run ( ) { TextAnnotation ta1 = tab . createTextAnnotation ( TEST_INPUT ) ; { try { view = getView ( ta1 ) ; } catch ( AnnotatorException e ) { e . printStackTrace ( ) ; fail ( e . getMessage ( ) ) ; } assertTrue ( view != null ) ; } long start = System . currentTimeMillis ( ) ; for ( int i = 0 ; i < duration ; i ++ ) { TextAnnotation ta = tab . createTextAnnotation ( TEST_INPUT ) ; try { view = getView ( ta ) ; } catch ( AnnotatorException e ) { e . printStackTrace ( ) ; fail ( e . getMessage ( ) ) ; } for ( Constituent c : view . getConstituents ( ) ) { if ( ! entities . contains ( c . toString ( ) ) ) error = "No entity named \"" + c . toString ( ) + "\"" ; } } if ( error == null ) averageRunTime = ( System . currentTimeMillis ( ) - start ) / duration ; }
just do the same thing over and over .
