MCPcopy Create free account
hub / github.com/F-Stack/f-stack / ustime

Function ustime

app/redis-6.2.6/src/redis-cli.c:286–294  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

284uint16_t crc16(const char *buf, int len);
285
286static long long ustime(void) {
287 struct timeval tv;
288 long long ust;
289
290 gettimeofday(&tv, NULL);
291 ust = ((long long)tv.tv_sec)*1000000;
292 ust += tv.tv_usec;
293 return ust;
294}
295
296static long long mstime(void) {
297 return ustime()/1000;

Callers 3

mstimeFunction · 0.70
latencyDistModeFunction · 0.70
intrinsicLatencyModeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected