MCPcopy Create free account
hub / github.com/Tencent/libco / AddSuccCnt

Function AddSuccCnt

example_echocli.cpp:70–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68static int iTime = 0;
69
70void AddSuccCnt()
71{
72 int now = time(NULL);
73 if (now >iTime)
74 {
75 printf("time %d Succ Cnt %d Fail Cnt %d\n", iTime, iSuccCnt, iFailCnt);
76 iTime = now;
77 iSuccCnt = 0;
78 iFailCnt = 0;
79 }
80 else
81 {
82 iSuccCnt++;
83 }
84}
85void AddFailCnt()
86{
87 int now = time(NULL);

Callers 1

readwrite_routineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected