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

Function mstime

src/redis-benchmark.cpp:246–254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

244}
245
246static long long mstime(void) {
247 struct timeval tv;
248 long long mst;
249
250 gettimeofday(&tv, NULL);
251 mst = ((long long)tv.tv_sec)*1000;
252 mst += tv.tv_usec/1000;
253 return mst;
254}
255
256static uint64_t dictSdsHash(const void *key) {
257 return dictGenHashFunction((unsigned char*)key, sdslen((char*)key));

Callers 2

benchmarkFunction · 0.70
showThroughputFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected