Home
last modified time | relevance | path

Searched refs:lastMonotonicTime_ (Results 1 – 5 of 5) sorted by relevance

/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/syncer/src/
H A Dtime_helper.cpp26 std::atomic<Timestamp> TimeHelper::lastMonotonicTime_ = 0; member in DistributedDB::TimeHelper
98 lastMonotonicTime_ = GetMonotonicTime(); in Initialize()
111 if (currentMonotonicTime != INVALID_TIMESTAMP && lastMonotonicTime_ != INVALID_TIMESTAMP) { in GetTime()
112 deltaTime = currentMonotonicTime - lastMonotonicTime_; in GetTime()
114 lastMonotonicTime_ = currentMonotonicTime; in GetTime()
H A Dtime_helper.h71 static std::atomic<Timestamp> lastMonotonicTime_; variable
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/src/
H A Dtime_tick_monitor.cpp27 lastMonotonicTime_(0), in TimeTickMonitor()
50 lastMonotonicTime_ = GetMonotonicTime(); in StartTimeTickMonitor()
127 int64_t monotonicOffset = static_cast<int64_t>(monotonicTime - lastMonotonicTime_); in TimeTick()
129 lastMonotonicTime_ = monotonicTime; in TimeTick()
H A Dtime_tick_monitor.h73 Timestamp lastMonotonicTime_ = 0; variable
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/interfaces/src/relational/
H A Drelational_store_sqlite_ext.cpp179 (void)OS::GetMonotonicRelativeTimeInMicrosecond(lastMonotonicTime_); in Initialize()
180 … LOGD("Initialize time helper skew: %" PRIu64 " %" PRIu64, lastSystemTime_, lastMonotonicTime_); in Initialize()
202 auto deltaTime = static_cast<int64_t>(currentMonotonicTime - lastMonotonicTime_); in GetTime()
216 lastMonotonicTime_ = currentMonotonicTime; in GetTime()
228 auto monotonicTimeOffset = static_cast<int64_t>(currentMonotonicTime - lastMonotonicTime_); in TimeSkew()
248 lastMonotonicTime_ = currentMonotonicTime; in TimeSkew()
303 Timestamp lastMonotonicTime_ = 0; member in __anon7150c7630110::TimeHelper