Home
last modified time | relevance | path

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

/ohos5.0/commonlibrary/c_utils/base/src/
H A Dtimer_event_handler.cpp29 static const int NANO_TO_BASE = 1000000000; variable
30 constexpr int MILLI_TO_NANO = NANO_TO_BASE / MILLI_TO_BASE;
63 if (newValue.it_value.tv_nsec >= NANO_TO_BASE) { in Initialize()
65 newValue.it_value.tv_nsec = newValue.it_value.tv_nsec % NANO_TO_BASE; in Initialize()
/ohos5.0/base/time/time_service/test/unittest/js_test/permission/
H A DSystemDateTimeGet.test.js22 const NANO_TO_BASE = 1000000000;
23 const NANO_TO_MILLI = NANO_TO_BASE / MILLI_TO_BASE;
239 expect(nanoTime / NANO_TO_BASE > 0).assertTrue();
356 expect(nanoTime / NANO_TO_BASE > 0).assertTrue();
703 expect(typeof (time) === 'number' && time / NANO_TO_BASE > 0).assertTrue();
757 expect(typeof (time) === 'number' && time / NANO_TO_BASE > 0).assertTrue();
H A DSystemTimeGet.test.js22 const NANO_TO_BASE = 1000000000;
23 const NANO_TO_MILLI = NANO_TO_BASE / MILLI_TO_BASE;
228 expect(nanoTime / NANO_TO_BASE > 0).assertTrue();
339 expect(nanoTime / NANO_TO_BASE > 0).assertTrue();
/ohos5.0/commonlibrary/c_utils/base/test/unittest/common/
H A Dutils_event_test.cpp60 static const int NANO_TO_BASE = 1000000000; variable
61 static constexpr int MILLI_TO_NANO = NANO_TO_BASE / MILLI_TO_BASE;
269 if (newValue.it_value.tv_nsec >= NANO_TO_BASE) { in Initialize()
271 newValue.it_value.tv_nsec = newValue.it_value.tv_nsec % NANO_TO_BASE; in Initialize()
843 if (newValue.it_value.tv_nsec >= NANO_TO_BASE) { in Initialize()
845 newValue.it_value.tv_nsec = newValue.it_value.tv_nsec % NANO_TO_BASE; in Initialize()
/ohos5.0/commonlibrary/c_utils/base/test/benchmarktest/event_benchmark_test/
H A Devent_benchmark_test.cpp75 static const int NANO_TO_BASE = 1000000000; variable
76 static constexpr int MILLI_TO_NANO = NANO_TO_BASE / MILLI_TO_BASE;
371 if (newValue.it_value.tv_nsec >= NANO_TO_BASE) { in Initialize()
373 newValue.it_value.tv_nsec = newValue.it_value.tv_nsec % NANO_TO_BASE; in Initialize()
987 if (newValue.it_value.tv_nsec >= NANO_TO_BASE) { in Initialize()
989 newValue.it_value.tv_nsec = newValue.it_value.tv_nsec % NANO_TO_BASE; in Initialize()
/ohos5.0/base/time/time_service/services/
H A Dtime_system_ability.cpp58 static const int NANO_TO_BASE = 1000000000LL; variable
66 constexpr int32_t NANO_TO_MILLI = NANO_TO_BASE / MILLI_TO_BASE;
735 time = tv.tv_sec * NANO_TO_BASE + tv.tv_nsec; in GetThreadTimeNs()