Searched refs:MILLI_TO_BASE (Results 1 – 5 of 5) sorted by relevance
21 const MILLI_TO_BASE = 1000;23 const NANO_TO_MILLI = NANO_TO_BASE / MILLI_TO_BASE;141 expect(typeof (milliTime) === 'number' && milliTime / MILLI_TO_BASE > 0).assertTrue();158 expect(typeof (data) === 'number' && (data / MILLI_TO_BASE) > 0).assertTrue();173 expect(typeof (milliTime) === 'number' && milliTime / MILLI_TO_BASE > 0).assertTrue();190 expect(typeof (data) === 'number' && (data / MILLI_TO_BASE) > 0).assertTrue();223 expect((data / MILLI_TO_BASE) > 0).assertTrue();239 expect(typeof (milliTime) === 'number' && milliTime / MILLI_TO_BASE >= 0).assertTrue();256 expect(typeof (data) === 'number' && (data / MILLI_TO_BASE) > 0).assertTrue();272 expect(typeof (milliTime) === 'number' && milliTime / MILLI_TO_BASE > 0).assertTrue();[all …]
53 static const int MILLI_TO_BASE = 1000LL; variable62 constexpr int32_t MILLI_TO_MICR = MICR_TO_BASE / MILLI_TO_BASE;63 constexpr int32_t NANO_TO_MILLI = NANO_TO_BASE / MILLI_TO_BASE;358 tv.tv_sec = (time_t)(time / MILLI_TO_BASE); in SetRealTime()359 tv.tv_usec = (suseconds_t)((time % MILLI_TO_BASE) * MILLI_TO_MICR); in SetRealTime()604 times = tv.tv_sec * MILLI_TO_BASE + tv.tv_nsec / NANO_TO_MILLI; in GetWallTimeMs()624 times = tv.tv_sec * MILLI_TO_BASE + tv.tv_nsec / NANO_TO_MILLI; in GetBootTimeMs()644 times = tv.tv_sec * MILLI_TO_BASE + tv.tv_nsec / NANO_TO_MILLI; in GetMonotonicTimeMs()670 times = tv.tv_sec * MILLI_TO_BASE + tv.tv_nsec / NANO_TO_MILLI; in GetThreadTimeMs()
37 const int32_t MILLI_TO_BASE = 1000; variable70 if ((now / MILLI_TO_BASE - lastSystemTime_) < MAX_UPDATE_TIME) { in ProcessNitzUpdate()206 currentSystemTime = currentSystemTime / MILLI_TO_BASE; in IsValidTime()298 …esult = OHOS::MiscServices::TimeServiceClient::GetInstance()->SetTime(networkTime * MILLI_TO_BASE); in SaveTime()
545 static const int32_t MILLI_TO_BASE = 1000; in TestInitTimeAndTimeZone() local557 … bool result = OHOS::MiscServices::TimeServiceClient::GetInstance()->SetTime(time * MILLI_TO_BASE); in TestInitTimeAndTimeZone()