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

Function ustime

app/redis-6.2.6/src/server.c:1214–1222  ·  view source on GitHub ↗

Return the UNIX time in microseconds */

Source from the content-addressed store, hash-verified

1212
1213/* Return the UNIX time in microseconds */
1214long long ustime(void) {
1215 struct timeval tv;
1216 long long ust;
1217
1218 gettimeofday(&tv, NULL);
1219 ust = ((long long)tv.tv_sec)*1000000;
1220 ust += tv.tv_usec;
1221 return ust;
1222}
1223
1224/* Return the UNIX time in milliseconds */
1225mstime_t mstime(void) {

Callers 14

activeExpireCycleFunction · 0.70
scanLaterListFunction · 0.70
scanLaterStreamListpacksFunction · 0.70
defragLaterStepFunction · 0.70
activeDefragCycleFunction · 0.70
mstimeFunction · 0.70
updateCachedTimeFunction · 0.70
redisForkFunction · 0.70
loadDataFromDiskFunction · 0.70
moduleTimerHandlerFunction · 0.70
RM_CreateTimerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected