Home
last modified time | relevance | path

Searched refs:NANO_TO_BASE (Results 1 – 3 of 3) sorted by relevance

/base/time/time_service/test/unittest/js_test/permission/
DSystemDateTimeGet.test.js22 const NANO_TO_BASE = 1000000000;
23 const NANO_TO_MILLI = NANO_TO_BASE / MILLI_TO_BASE;
206 expect(nanoTime / NANO_TO_BASE > 0).assertTrue();
305 expect(nanoTime / NANO_TO_BASE > 0).assertTrue();
604 expect(typeof (time) === 'number' && time / NANO_TO_BASE > 0).assertTrue();
649 expect(typeof (time) === 'number' && time / NANO_TO_BASE > 0).assertTrue();
DSystemTimeGet.test.js22 const NANO_TO_BASE = 1000000000;
23 const NANO_TO_MILLI = NANO_TO_BASE / MILLI_TO_BASE;
206 expect(nanoTime / NANO_TO_BASE > 0).assertTrue();
305 expect(nanoTime / NANO_TO_BASE > 0).assertTrue();
/base/time/time_service/services/
Dtime_system_ability.cpp55 static const int NANO_TO_BASE = 1000000000LL; variable
63 constexpr int32_t NANO_TO_MILLI = NANO_TO_BASE / MILLI_TO_BASE;
614 times = tv.tv_sec * NANO_TO_BASE + tv.tv_nsec; in GetWallTimeNs()
634 times = tv.tv_sec * NANO_TO_BASE + tv.tv_nsec; in GetBootTimeNs()
654 times = tv.tv_sec * NANO_TO_BASE + tv.tv_nsec; in GetMonotonicTimeNs()
686 times = tv.tv_sec * NANO_TO_BASE + tv.tv_nsec; in GetThreadTimeNs()