请求所需的时间
parent
8e7b04b6a5
commit
cbd0e4d78c
|
|
@ -107,7 +107,7 @@ public class HandlerLogicThread extends Thread{
|
|||
return;
|
||||
}*/
|
||||
}
|
||||
|
||||
long curTimeMillis = System.currentTimeMillis();
|
||||
if(msgId != MessageTypeProto.MessageType.GET_CHAT_MESSAGE_REQUEST_VALUE){
|
||||
LOGGER.info("doWork->uid={},mType={};start", userId, MessageTypeProto.MessageType.valueOf(msgId));
|
||||
}
|
||||
|
|
@ -115,11 +115,12 @@ public class HandlerLogicThread extends Thread{
|
|||
MissionEventDistributor.requestStart();
|
||||
baseHandler.execute(session, packetNetData);
|
||||
MissionEventDistributor.requestEnd(session,true);
|
||||
if(msgId != MessageTypeProto.MessageType.GET_CHAT_MESSAGE_REQUEST_VALUE){
|
||||
LOGGER.info("doWork->uid={},mType={};end", userId, MessageTypeProto.MessageType.valueOf(msgId));
|
||||
}
|
||||
|
||||
MongoUtil.getInstence().lastUpdate();
|
||||
if(msgId != MessageTypeProto.MessageType.GET_CHAT_MESSAGE_REQUEST_VALUE){
|
||||
long useTime = System.currentTimeMillis() - curTimeMillis;
|
||||
LOGGER.info("doWork->uid={},mType={},useTime={},;end", userId, MessageTypeProto.MessageType.valueOf(msgId),useTime);
|
||||
}
|
||||
|
||||
}catch (Exception e){
|
||||
LOGGER.error("",e);
|
||||
|
|
|
|||
Loading…
Reference in New Issue