Home
last modified time | relevance | path

Searched refs:mstime (Results 1 – 17 of 17) sorted by relevance

/redis-3.2.3/src/
H A Dsyncio.c51 long long start = mstime(); in syncWrite()
72 elapsed = mstime() - start; in syncWrite()
87 long long start = mstime(); in syncRead()
111 elapsed = mstime() - start; in syncRead()
H A Dsentinel.c734 mstime_t now = mstime(); in sentinelRunPendingScripts()
752 sj->start_time = mstime(); in sentinelRunPendingScripts()
845 mstime_t now = mstime(); in sentinelKillTimedoutScripts()
945 link->act_ping_time = mstime(); in createInstanceLink()
1189 ri->last_pub_time = mstime(); in createSentinelRedisInstance()
1190 ri->last_hello_time = mstime(); in createSentinelRedisInstance()
1907 mstime_t now = mstime(); in sentinelReconnectInstance()
2110 ri->info_refresh = mstime(); in sentinelRefreshInstanceInfo()
2562 mstime_t now = mstime(); in sentinelSendPeriodicCommands()
3103 mstime_t now = mstime(); in sentinelCommand()
[all …]
H A Dlatency.h72 var = mstime(); \
80 var = mstime() - var; \
H A Dcluster.c190 n->fail_time = mstime(); in clusterLoadConfig()
549 link->ctime = mstime(); in createClusterLink()
660 node->ctime = mstime(); in createClusterNode()
704 fr->time = mstime(); in clusterNodeAddFailureReport()
712 fr->time = mstime(); in clusterNodeAddFailureReport()
729 mstime_t now = mstime(); in clusterNodeCleanupFailureReports()
1169 node->fail_time = mstime(); in markNodeAsFailingIfNeeded()
1181 mstime_t now = mstime(); in clearNodeFailureIfNeeded()
2230 link->node->ping_sent = mstime(); in clusterSendPing()
2563 node->slaveof->voted_time = mstime(); in clusterSendFailoverAuthIfNeeded()
[all …]
H A Dblocked.c90 tval += mstime(); in getTimeoutFromObjectOrReply()
H A Dredis-cli.c149 static long long mstime(void) { in mstime() function
1321 long long start_time = mstime(), elapsed; in repl()
1343 elapsed = mstime()-start_time; in repl()
1470 long long history_start = mstime(); in latencyMode()
1474 start = mstime(); in latencyMode()
1480 latency = mstime()-start; in latencyMode()
1495 if (config.latency_history && mstime()-history_start > history_interval) in latencyMode()
1497 printf(" -- %.2f seconds range\n", (float)(mstime()-history_start)/1000); in latencyMode()
1498 history_start = mstime(); in latencyMode()
2422 start_cycle = mstime(); in LRUTestMode()
[all …]
H A Dredis-benchmark.c115 static long long mstime(void) { in mstime() function
471 config.start = mstime(); in benchmark()
473 config.totlatency = mstime()-config.start; in benchmark()
627 float dt = (float)(mstime()-config.start)/1000.0; in showThroughput()
H A Ddb.c910 now = server.lua_caller ? server.lua_time_start : mstime(); in expireIfNeeded()
965 if (when <= mstime() && !server.loading && !server.masterhost) { in expireGenericCommand()
990 expireGenericCommand(c,mstime(),UNIT_SECONDS); in expireCommand()
998 expireGenericCommand(c,mstime(),UNIT_MILLISECONDS); in pexpireCommand()
1017 ttl = expire-mstime(); in ttlGenericCommand()
H A Daof.c498 when += mstime(); in catAppendOnlyExpireAtCommand()
1022 long long now = mstime(); in rewriteAppendOnlyFile()
1117 mstime_t start = mstime(); in rewriteAppendOnlyFile()
1118 while(mstime()-start < 1000 && nodata < 20) { in rewriteAppendOnlyFile()
H A Dredis-check-rdb.c180 long long expiretime, now = mstime(); in redis_check_rdb()
H A Dserver.c403 mstime_t mstime(void) { in mstime() function
830 now = mstime(); in activeExpireCycle()
890 return (mstime()/LRU_CLOCK_RESOLUTION) & LRU_CLOCK_MAX; in getLRUClock()
895 long long t = mstime() - server.inst_metric[metric].last_sample_time; in trackInstantaneousMetric()
906 server.inst_metric[metric].last_sample_time = mstime(); in trackInstantaneousMetric()
990 mstime_t now = mstime(); in clientsCron()
1068 server.mstime = mstime(); in updateCachedTime()
1841 server.inst_metric[j].last_sample_time = mstime(); in resetServerStats()
H A Dquicklist.c1476 static long long mstime(void) { return ustime() / 1000; } in mstime() function
1628 long long start = mstime(); in quicklistTest()
2584 long long stop = mstime(); in quicklistTest()
2590 long long start = mstime(); in quicklistTest()
2635 long long stop = mstime(); in quicklistTest()
H A Dscripting.c1187 elapsed = mstime() - server.lua_time_start; in luaMaskCountHook()
1304 server.lua_time_start = mstime(); in evalGenericCommand()
2356 mstime_t elapsed = mstime() - server.lua_time_start; in luaLdbLineHook()
2386 server.lua_time_start = mstime(); in luaLdbLineHook()
H A Dt_string.c88 if (expire) setExpire(c->db,key,mstime()+milliseconds); in setGenericCommand()
H A Drdb.c767 long long now = mstime(); in rdbSaveRio()
1280 long long expiretime, now = mstime(); in rdbLoad()
H A Dserver.h936 long long mstime; /* Like 'unixtime' but with milliseconds resolution. */ member
1084 long long mstime(void);
H A Dnetworking.c1884 server.clients_pause_end_time < server.mstime) in clientsArePaused()