Home
last modified time | relevance | path

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

/base/time/time_service/framework/js/napi/system_time/test/unittest/src/
DSystemTimeGets.test.js21 const MILLI_TO_BASE = 1000;
23 const NANO_TO_MILLI = NANO_TO_BASE / MILLI_TO_BASE;
95 expect(milliTime / MILLI_TO_BASE > 0).assertTrue;
135 expect(milliTime / MILLI_TO_BASE > 0).milliTime;
/base/time/time_service/framework/js/napi/system_date_time/test/unittest/src/
DSystemDateTimeGets.test.js21 const MILLI_TO_BASE = 1000;
23 const NANO_TO_MILLI = NANO_TO_BASE / MILLI_TO_BASE;
95 expect(milliTime / MILLI_TO_BASE > 0).assertTrue;
135 expect(milliTime / MILLI_TO_BASE > 0).milliTime;
/base/time/time_service/services/
Dtime_system_ability.cpp52 static const int MILLI_TO_BASE = 1000LL; variable
59 constexpr int32_t MILLI_TO_MICR = MICR_TO_BASE / MILLI_TO_BASE;
60 constexpr int32_t NANO_TO_MILLI = NANO_TO_BASE / MILLI_TO_BASE;
344 tv.tv_sec = (time_t) (time / MILLI_TO_BASE); in SetRealTime()
345 tv.tv_usec = (suseconds_t)((time % MILLI_TO_BASE) * MILLI_TO_MICR); in SetRealTime()
578 times = tv.tv_sec * MILLI_TO_BASE + tv.tv_nsec / NANO_TO_MILLI; in GetWallTimeMs()
598 times = tv.tv_sec * MILLI_TO_BASE + tv.tv_nsec / NANO_TO_MILLI; in GetBootTimeMs()
618 times = tv.tv_sec * MILLI_TO_BASE + tv.tv_nsec / NANO_TO_MILLI; in GetMonotonicTimeMs()
645 times = tv.tv_sec * MILLI_TO_BASE + tv.tv_nsec / NANO_TO_MILLI; in GetThreadTimeMs()
/base/telephony/core_service/services/network_search/src/
Dnitz_update.cpp37 const int32_t MILLI_TO_BASE = 1000; variable
74 if ((now / MILLI_TO_BASE - lastSystemTime_) < MAX_UPDATE_TIME) { in ProcessNitzUpdate()
215 currentSystemTime = currentSystemTime / MILLI_TO_BASE; in IsValidTime()
308 …esult = OHOS::MiscServices::TimeServiceClient::GetInstance()->SetTime(networkTime * MILLI_TO_BASE); in SaveTime()
/base/telephony/core_service/services/network_search/test/
Dtest.cpp475 static const int32_t MILLI_TO_BASE = 1000; in TestInitTimeAndTimeZone() local
487 … bool result = OHOS::MiscServices::TimeServiceClient::GetInstance()->SetTime(time * MILLI_TO_BASE); in TestInitTimeAndTimeZone()