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

Function ustime

src/modules/keydb_modstatsd/modmain.cpp:261–269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

259static uint64_t g_cclients = 0;
260
261long long ustime(void) {
262 struct timeval tv;
263 long long ust;
264
265 gettimeofday(&tv, NULL);
266 ust = ((long long)tv.tv_sec)*1000000;
267 ust += tv.tv_usec;
268 return ust;
269}
270
271void event_client_change_handler(struct RedisModuleCtx *ctx, RedisModuleEvent eid, uint64_t subevent, void *data) {
272 if (eid.id != REDISMODULE_EVENT_CLIENT_CHANGE)

Callers 1

event_cron_handlerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected