Home
last modified time | relevance | path

Searched refs:NANO_TO_MILLI (Results 1 – 4 of 4) sorted by relevance

/base/time/time_service/test/unittest/js_test/permission/
DSystemTimeGet.test.js23 const NANO_TO_MILLI = NANO_TO_BASE / MILLI_TO_BASE;
106 const milliTime = nanoTime / NANO_TO_MILLI;
125 expect((data / NANO_TO_MILLI) >= nowTime).assertTrue();
DSystemDateTimeGet.test.js23 const NANO_TO_MILLI = NANO_TO_BASE / MILLI_TO_BASE;
106 const milliTime = nanoTime / NANO_TO_MILLI;
125 expect((data / NANO_TO_MILLI) >= nowTime).assertTrue();
/base/time/time_service/services/
Dtime_system_ability.cpp63 constexpr int32_t NANO_TO_MILLI = NANO_TO_BASE / MILLI_TO_BASE; variable
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()
/base/time/time_service/framework/js/napi/system_date_time/src/
Dnapi_system_date_time.cpp32 constexpr int64_t NANO_TO_MILLI = SECONDS_TO_NANO / SECONDS_TO_MILLI; variable
464 time = tv.tv_sec * SECONDS_TO_MILLI + tv.tv_nsec / NANO_TO_MILLI; in GetDeviceTime()