public void endPhase(int phase){
  if (compileTimes != null && phase >= PREPROCESS && phase <= POSTPROCESS) {
    compileTimes[phase].invocationCount++;
    compileTimes[phase].totalTime+=System.currentTimeMillis() - startTime;
  }
}

public void endPhase ( int phase ) { if ( compileTimes != null && phase >= PREPROCESS && phase <= POSTPROCESS ) { compileTimes [ phase ] . invocationCount ++ ; compileTimes [ phase ] . totalTime += System . currentTimeMillis ( ) - startTime ; } }
call at the end of a compile phase to record the times .
