MCPcopy Create free account
hub / github.com/Tencent/phxsql / GetTimestampMS

Function GetTimestampMS

phxsqlproxy/phxsqlproxyutil.cpp:132–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130}
131
132uint64_t GetTimestampMS() {
133 uint64_t u = 0;
134 struct timeval now;
135 gettimeofday(&now, NULL);
136 u += now.tv_sec;
137 u *= 1000;
138 u += now.tv_usec / 1000;
139 return u;
140}
141
142void GetMysqlBufDebugString(const char * buf, int len, std::string & debug_str) {
143 debug_str = "";

Callers 5

MarkFailureMethod · 0.85
ConnectDestMethod · 0.85
TransMsgMethod · 0.85
ByteFromMysqlClientMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected