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

Function ustime

src/server.cpp:1299–1307  ·  view source on GitHub ↗

Return the UNIX time in microseconds */

Source from the content-addressed store, hash-verified

1297
1298/* Return the UNIX time in microseconds */
1299long long ustime(void) {
1300 struct timeval tv;
1301 long long ust;
1302
1303 gettimeofday(&tv, NULL);
1304 ust = ((long long)tv.tv_sec)*1000000;
1305 ust += tv.tv_usec;
1306 return ust;
1307}
1308
1309/* Return the UNIX time in milliseconds */
1310mstime_t mstime(void) {

Callers 15

rdbSaveBackgroundFunction · 0.70
scanLaterListFunction · 0.70
scanLaterStreamListpacksFunction · 0.70
defragLaterStepFunction · 0.70
activeDefragCycleFunction · 0.70
activeExpireCycleCoreMethod · 0.70
mstimeFunction · 0.70
updateCachedTimeFunction · 0.70
redisForkFunction · 0.70
loadDataFromDiskFunction · 0.70
moduleTimerHandlerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected