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

Function ustime

src/redis-cli.c:116–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114uint16_t crc16(const char *buf, int len);
115
116static long long ustime(void) {
117 struct timeval tv;
118 long long ust;
119
120 gettimeofday(&tv, NULL);
121 ust = ((long long)tv.tv_sec)*1000000;
122 ust += tv.tv_usec;
123 return ust;
124}
125
126static long long mstime(void) {
127 return ustime()/1000;

Callers 3

mstimeFunction · 0.70
latencyDistModeFunction · 0.70
intrinsicLatencyModeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected