Lines Matching defs:intervalMs
37 int32_t TimerManager::AddTimer(int32_t intervalMs, int32_t repeatCount, std::function<void()> callback)
39 if (intervalMs < MIN_INTERVAL) {
40 intervalMs = MIN_INTERVAL;
41 } else if (intervalMs > MAX_INTERVAL_MS) {
42 intervalMs = MAX_INTERVAL_MS;
44 return AddTimerInternal(intervalMs, repeatCount, callback);
47 int32_t TimerManager::AddLongTimer(int32_t intervalMs, int32_t repeatCount, std::function<void()> callback)
49 if (intervalMs < MIN_INTERVAL) {
50 intervalMs = MIN_INTERVAL;
51 } else if (intervalMs > MAX_LONG_INTERVAL_MS) {
52 intervalMs = MAX_INTERVAL_MS;
54 return AddTimerInternal(intervalMs, repeatCount, callback);
99 int32_t TimerManager::AddTimerInternal(int32_t intervalMs, int32_t repeatCount, std::function<void()> callback)
110 timer->intervalMs = intervalMs;
114 if (!AddInt64(nowTime, timer->intervalMs, timer->nextCallTime)) {
143 if (!AddInt64(nowTime, timer->intervalMs, timer->nextCallTime)) {
216 if (!AddInt64(curTimer->nextCallTime, curTimer->intervalMs, curTimer->nextCallTime)) {