Home
last modified time | relevance | path

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

/f-stack/app/redis-5.0.5/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.c756 mstime_t now = mstime(); in sentinelRunPendingScripts()
774 sj->start_time = mstime(); in sentinelRunPendingScripts()
868 mstime_t now = mstime(); in sentinelKillTimedoutScripts()
968 link->act_ping_time = mstime(); in createInstanceLink()
1212 ri->last_pub_time = mstime(); in createSentinelRedisInstance()
1213 ri->last_hello_time = mstime(); in createSentinelRedisInstance()
2000 mstime_t now = mstime(); in sentinelReconnectInstance()
2204 ri->info_refresh = mstime(); in sentinelRefreshInstanceInfo()
2661 mstime_t now = mstime(); in sentinelSendPeriodicCommands()
3209 mstime_t now = mstime(); in sentinelCommand()
[all …]
H A Dexpire.c172 now = mstime(); in activeExpireCycle()
290 mstime_t start = mstime(); in expireSlaveKeys()
337 if ((cycles % 64) == 0 && mstime()-start > 1) break; in expireSlaveKeys()
427 if (when <= mstime() && !server.loading && !server.masterhost) { in expireGenericCommand()
454 expireGenericCommand(c,mstime(),UNIT_SECONDS); in expireCommand()
464 expireGenericCommand(c,mstime(),UNIT_MILLISECONDS); in pexpireCommand()
485 ttl = expire-mstime(); in ttlGenericCommand()
H A Dlatency.h72 var = mstime(); \
80 var = mstime() - var; \
H A Dcluster.c200 n->fail_time = mstime(); in clusterLoadConfig()
591 link->ctime = mstime(); in createClusterLink()
701 node->ctime = mstime(); in createClusterNode()
746 fr->time = mstime(); in clusterNodeAddFailureReport()
754 fr->time = mstime(); in clusterNodeAddFailureReport()
771 mstime_t now = mstime(); in clusterNodeCleanupFailureReports()
1211 node->fail_time = mstime(); in markNodeAsFailingIfNeeded()
1223 mstime_t now = mstime(); in clearNodeFailureIfNeeded()
2409 link->node->ping_sent = mstime(); in clusterSendPing()
4930 if (!absttl) ttl+=mstime(); in restoreCommand()
[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 Dt_stream.c75 uint64_t ms = mstime(); in streamNextID()
973 nack->delivery_time = mstime(); in streamReplyWithRange()
1042 nack->delivery_time = mstime(); in streamReplyWithRangeFromConsumerPEL()
1594 nack->delivery_time = mstime(); in streamCreateNACK()
1665 consumer->seen_time = mstime(); in streamLookupConsumer()
2023 mstime_t now = mstime(); in xpendingCommand()
2168 mstime_t now = mstime(); in xclaimCommand()
2477 mstime_t now = mstime(); in xinfoCommand()
H A Dredis-check-rdb.c183 long long expiretime, now = mstime(); in redis_check_rdb()
H A Devict.c71 return (mstime()/LRU_CLOCK_RESOLUTION) & LRU_CLOCK_MAX; in getLRUClock()
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 Dserver.c442 mstime_t mstime(void) { in mstime() function
791 long long t = mstime() - server.inst_metric[metric].last_sample_time; in trackInstantaneousMetric()
802 server.inst_metric[metric].last_sample_time = mstime(); in trackInstantaneousMetric()
974 mstime_t now = mstime(); in clientsCron()
1066 server.mstime = mstime(); in updateCachedTime()
2010 server.inst_metric[j].last_sample_time = mstime(); in resetServerStats()
H A Dblocked.c92 tval += mstime(); in getTimeoutFromObjectOrReply()
H A Daof.c567 when += mstime(); in catAppendOnlyExpireAtCommand()
1414 mstime_t start = mstime(); in rewriteAppendOnlyFile()
1415 while(mstime()-start < 1000 && nodata < 20) { in rewriteAppendOnlyFile()
H A Dscripting.c1236 long long elapsed = mstime() - server.lua_time_start; in luaMaskCountHook()
1359 server.lua_time_start = mstime(); in evalGenericCommand()
2423 mstime_t elapsed = mstime() - server.lua_time_start; in luaLdbLineHook()
2453 server.lua_time_start = mstime(); in luaLdbLineHook()
H A Dredis-cli.c264 static long long mstime(void) { in mstime() function
1762 long long start_time = mstime(), elapsed; in repl()
1776 elapsed = mstime()-start_time; in repl()
5727 long long history_start = mstime(); in latencyMode()
5739 start = mstime(); in latencyMode()
5745 latency = mstime()-start; in latencyMode()
5764 } else if (mstime()-history_start > config.interval) { in latencyMode()
5770 if (config.latency_history && mstime()-history_start > history_interval) in latencyMode()
5773 history_start = mstime(); in latencyMode()
6864 start_cycle = mstime(); in LRUTestMode()
[all …]
H A Dt_string.c88 if (expire) setExpire(c,c->db,key,mstime()+milliseconds); in setGenericCommand()
H A Dmodule.c770 return mstime(); in RM_Milliseconds()
1623 expire -= mstime(); in RM_GetExpire()
1640 expire += mstime(); in RM_SetExpire()
3628 c->bpop.timeout = timeout_ms ? (mstime()+timeout_ms) : 0; in RM_BlockClient()
H A Dserver.h1226 long long mstime; /* Like 'unixtime' but with milliseconds resolution. */ member
1418 long long mstime(void);
H A Ddb.c1143 mstime_t now = server.lua_caller ? server.lua_time_start : mstime(); in keyIsExpired()
H A Dnetworking.c2191 server.clients_pause_end_time < server.mstime) in clientsArePaused()
H A Drdb.c1874 long long lru_idle = -1, lfu_freq = -1, expiretime = -1, now = mstime(); in rdbLoadRio()