public void recordEndTime(){
  int msDiff=(int)(System.currentTimeMillis() - _currentRequestStartTime.get());
  _log.info("Request response time: {} ms",msDiff);
  updateOrResetReqRspAvgLstHr(updateOrResetReqRspAvgLstMin(msDiff,false),false);
  updateMinMaxReqRspMs(msDiff);
  if (msDiff >= SUSPISCIOUS_RSP_TIME_MS) {
    _alertLog.warn(MessageFormat.format("Request took an unusually long time to complete: {0}ms",msDiff));
  }
  _currentRequestStartTime.remove();
}

public void recordEndTime ( ) { int msDiff = ( int ) ( System . currentTimeMillis ( ) - _currentRequestStartTime . get ( ) ) ; _log . info ( "Request response time: {} ms" , msDiff ) ; updateOrResetReqRspAvgLstHr ( updateOrResetReqRspAvgLstMin ( msDiff , false ) , false ) ; updateMinMaxReqRspMs ( msDiff ) ; if ( msDiff >= SUSPISCIOUS_RSP_TIME_MS ) { _alertLog . warn ( MessageFormat . format ( "Request took an unusually long time to complete: {0}ms" , msDiff ) ) ; } _currentRequestStartTime . remove ( ) ; }
computes the response time of the request that just finished for the local thread and updates the request response average in the last minute , and propagates to the request response per minute per hour counter . updates min / max response time . if the response is above suspicious_resp_time_ms , log a warning .
