Skip to content

Commit 49f5f3d

Browse files
committed
add time measurement logging code to getcfcheckpt
1 parent 48cff1b commit 49f5f3d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/net_processing.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3380,7 +3380,10 @@ bool ProcessMessage(CNode* pfrom, const std::string& msg_type, CDataStream& vRec
33803380
}
33813381

33823382
if (msg_type == NetMsgType::GETCFCHECKPT) {
3383+
int64_t start_time = GetTimeMicros();
33833384
ProcessGetCFCheckPt(pfrom, vRecv, chainparams, connman);
3385+
int64_t processing_duration = GetTimeMicros() - start_time;
3386+
LogPrintf("getcfcheckpt processing took %lldus\n", processing_duration);
33843387
return true;
33853388
}
33863389

0 commit comments

Comments
 (0)