MCPcopy Create free account
hub / github.com/apache/thrift / now

Function now

test/cpp/src/TestClient.cpp:112–120  ·  view source on GitHub ↗

Current time, microseconds since the epoch

Source from the content-addressed store, hash-verified

110
111// Current time, microseconds since the epoch
112uint64_t now() {
113 int64_t ret;
114 struct timeval tv;
115
116 THRIFT_GETTIMEOFDAY(&tv, nullptr);
117 ret = tv.tv_sec;
118 ret = ret * 1000 * 1000 + tv.tv_usec;
119 return ret;
120}
121
122static void testString_clientReturn(event_base* base,
123 int testNr,

Callers 15

TaskMethod · 0.85
runMethod · 0.85
runMethod · 0.85
loadTestMethod · 0.85
apiTestMethod · 0.85
monitorTimeoutTestMethod · 0.85
mainFunction · 0.85
writerThreadMethod · 0.85
getNextFlushTimeMethod · 0.85
TaskMethod · 0.85
runMethod · 0.85
removeExpiredMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected