mirror of
https://github.com/openharmony/miscservices_time.git
synced 2026-07-19 12:02:04 -04:00
@@ -29,7 +29,7 @@ public:
|
||||
void Stop();
|
||||
private:
|
||||
void StartTimer();
|
||||
void RefreshNextTriggerTime();
|
||||
void RefreshNextTriggerTime();
|
||||
uint64_t GetMillisecondsFromUTC(uint64_t UTCtimeNano);
|
||||
uint64_t GetSecondsFromUTC(uint64_t UTCtimeNano);
|
||||
uint64_t timerId_;
|
||||
|
||||
@@ -55,7 +55,7 @@ void TimeTickNotify::Callback(const uint64_t timerId)
|
||||
DelayedSingleton<TimeServiceNotify>::GetInstance()->PublishTimeTickEvents(currentTime);
|
||||
timerId_ = timerId;
|
||||
RefreshNextTriggerTime();
|
||||
auto startFunc = [this](){
|
||||
auto startFunc = [this]() {
|
||||
this->StartTimer();
|
||||
};
|
||||
std::thread startTimerThread(startFunc);
|
||||
|
||||
Reference in New Issue
Block a user