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

Function ustime

app/redis-6.2.6/src/redis-benchmark.c:229–237  ·  view source on GitHub ↗

Implementation */

Source from the content-addressed store, hash-verified

227
228/* Implementation */
229static long long ustime(void) {
230 struct timeval tv;
231 long long ust;
232
233 gettimeofday(&tv, NULL);
234 ust = ((long)tv.tv_sec)*1000000;
235 ust += tv.tv_usec;
236 return ust;
237}
238
239static long long mstime(void) {
240 struct timeval tv;

Callers 3

readHandlerFunction · 0.70
writeHandlerFunction · 0.70
mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected