public void updateEnd(Logger log){
  m_instanceCount++;
  m_sampleCount++;
  double end=System.currentTimeMillis();
  double temp=end - m_updateStart;
  m_cumulativeTime+=temp;
  boolean toFastToMeasure=false;
  if ((end - m_startTime) >= m_sampleTime) {
    computeUpdate(end);
    if (log != null) {
      log.statusMessage(m_statusMessagePrefix + "Processed " + m_instanceCount+ " insts @ "+ m_avInstsPerSec / m_numSamples + " insts/sec" + (toFastToMeasure ? "*" : ""));
    }
    m_sampleCount=0;
    m_cumulativeTime=0;
    m_startTime=System.currentTimeMillis();
  }
}

public void updateEnd ( Logger log ) { m_instanceCount ++ ; m_sampleCount ++ ; double end = System . currentTimeMillis ( ) ; double temp = end - m_updateStart ; m_cumulativeTime += temp ; boolean toFastToMeasure = false ; if ( ( end - m_startTime ) >= m_sampleTime ) { computeUpdate ( end ) ; if ( log != null ) { log . statusMessage ( m_statusMessagePrefix + "Processed " + m_instanceCount + " insts @ " + m_avInstsPerSec / m_numSamples + " insts/sec" + ( toFastToMeasure ? "*" : "" ) ) ; } m_sampleCount = 0 ; m_cumulativeTime = 0 ; m_startTime = System . currentTimeMillis ( ) ; } }
register a throughput measurement end point . collects counts and statistics . will update the status area for the kf step in question if the sample period has elapsed .
