void end(){
  long time=System.currentTimeMillis() - startTime;
  log(currentAction,"ms",(int)time);
  if (test.isCollect()) {
    totalTime+=time;
  }
}

void end ( ) { long time = System . currentTimeMillis ( ) - startTime ; log ( currentAction , "ms" , ( int ) time ) ; if ( test . isCollect ( ) ) { totalTime += time ; } }
this method is called when the test run ends . this will stop collecting data .
