MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / ustime

Function ustime

src/keydb-diagnostic-tool.cpp:197–205  ·  view source on GitHub ↗

Implementation */

Source from the content-addressed store, hash-verified

195
196/* Implementation */
197static long long ustime(void) {
198 struct timeval tv;
199 long long ust;
200
201 gettimeofday(&tv, NULL);
202 ust = ((long)tv.tv_sec)*1000000;
203 ust += tv.tv_usec;
204 return ust;
205}
206
207/* _serverAssert is needed by dict */
208extern "C" void _serverAssert(const char *estr, const char *file, int line) {

Callers 2

readHandlerFunction · 0.70
writeHandlerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected