TimerId Evloop::runEvery(double secs , AlarmCallback&& acb) { TimePoint tp = TimePoint::now(); tp.addSeconds(secs); return timerQueue_->addTimer(tp , std::move(acb) , secs); }
TimerId Evloop::runEvery(double secs , const AlarmCallback& acb) { TimePoint tp = TimePoint::now(); tp.addSeconds(secs); return timerQueue_->addTimer(tp , acb , secs); }