Searched refs:HDF_KILO_UNIT (Results 1 – 11 of 11) sorted by relevance
31 time->usec = (uint64_t)ts.tv_nsec / HDF_KILO_UNIT; in OsalGetTime()51 usec = (HDF_KILO_UNIT * HDF_KILO_UNIT); in OsalDiffTime()70 ts.tv_sec = (time_t)ms / HDF_KILO_UNIT; in OsalMSleep()71 ts.tv_nsec = (time_t)HDF_KILO_UNIT * HDF_KILO_UNIT * ((long)(ms % HDF_KILO_UNIT)); in OsalMSleep()83 ts.tv_sec = (time_t)us / ((long)HDF_KILO_UNIT * HDF_KILO_UNIT); in OsalUSleep()84 ts.tv_nsec = (time_t)HDF_KILO_UNIT * ((long)(us % HDF_KILO_UNIT)); in OsalUSleep()108 return (time.sec * HDF_KILO_UNIT + time.usec / HDF_KILO_UNIT); in OsalGetSysTimeMs()
64 time.tv_sec += (time_t)ms / HDF_KILO_UNIT; in OsalSemWait()65 time.tv_nsec += (time_t)(ms % HDF_KILO_UNIT) * HDF_KILO_UNIT * HDF_KILO_UNIT; in OsalSemWait()
95 time.tv_sec += (time_t)ms / HDF_KILO_UNIT; in OsalMutexTimedLock()96 time.tv_nsec += (time_t)(ms % HDF_KILO_UNIT) * HDF_KILO_UNIT * HDF_KILO_UNIT; in OsalMutexTimedLock()
47 ms = LOS_TickCountGet() * (HDF_KILO_UNIT / LOSCFG_BASE_CORE_TICK_PER_SECOND); in OsalGetTime()49 time->sec = ms / HDF_KILO_UNIT; in OsalGetTime()50 time->usec = (ms % HDF_KILO_UNIT) * HDF_KILO_UNIT; in OsalGetTime()71 usec = (HDF_KILO_UNIT * HDF_KILO_UNIT); in OsalDiffTime()82 return LOS_TickCountGet() * (HDF_KILO_UNIT / LOSCFG_BASE_CORE_TICK_PER_SECOND); in OsalGetSysTimeMs()87 LOS_Msleep(sec * HDF_KILO_UNIT); in OsalSleep()
48 ms = LOS_TickCountGet() * (HDF_KILO_UNIT / LOSCFG_BASE_CORE_TICK_PER_SECOND); in OsalGetTime()50 time->sec = ms / HDF_KILO_UNIT; in OsalGetTime()51 time->usec = (ms % HDF_KILO_UNIT) * HDF_KILO_UNIT; in OsalGetTime()72 usec = (HDF_KILO_UNIT * HDF_KILO_UNIT); in OsalDiffTime()83 return LOS_TickCountGet() * (HDF_KILO_UNIT / LOSCFG_BASE_CORE_TICK_PER_SECOND); in OsalGetSysTimeMs()88 LOS_Msleep(sec * HDF_KILO_UNIT); in OsalSleep()
48 ms = PRT_TickGetCount() * HDF_KILO_UNIT / OS_TICK_PER_SECOND; in OsalGetTime()50 time->sec = ms / HDF_KILO_UNIT; in OsalGetTime()51 time->usec = (ms % HDF_KILO_UNIT) * HDF_KILO_UNIT; in OsalGetTime()72 usec = (HDF_KILO_UNIT * HDF_KILO_UNIT); in OsalDiffTime()83 return PRT_TickGetCount() * HDF_KILO_UNIT / OS_TICK_PER_SECOND; in OsalGetSysTimeMs()
46 time->usec = ts.tv_nsec / HDF_KILO_UNIT; in OsalGetTime()67 usec = (HDF_KILO_UNIT * HDF_KILO_UNIT); in OsalDiffTime()79 msleep(sec * HDF_KILO_UNIT); in OsalSleep()108 return (time.sec * HDF_KILO_UNIT + OsalDivS64(time.usec, HDF_KILO_UNIT)); in OsalGetSysTimeMs()
87 time->tv_sec += static_cast<int32_t>(timeoutMs) / HDF_KILO_UNIT; in ConstructTimespec()88 …time->tv_nsec += (static_cast<int32_t>(timeoutMs) % HDF_KILO_UNIT) * HDF_KILO_UNIT * HDF_KILO_UNIT; in ConstructTimespec()
92 #define HDF_KILO_UNIT 1000 macro
79 uint64_t t1 = time->sec * HDF_KILO_UNIT * HDF_KILO_UNIT + time->usec; in OsalCheckTime()80 uint64_t t2 = (uint64_t)ms * HDF_KILO_UNIT; in OsalCheckTime()526 …UT_TEST_CHECK_RET(!OsalCheckTime(&hdfTsDiff, TIME_TEST_SLEEP_S * HDF_KILO_UNIT), OSAL_TIME_DIFFTIM… in OsaTimeTest()
71 uint64_t t1 = time->sec * HDF_KILO_UNIT * HDF_KILO_UNIT + time->usec; in OsalCheckTime()72 uint64_t t2 = (uint64_t)ms * HDF_KILO_UNIT; in OsalCheckTime()740 …UT_TEST_CHECK_RET(!OsalCheckTime(&hdfTsDiff, TIME_TEST_SLEEP_S * HDF_KILO_UNIT), OSAL_TIME_DIFFTIM… in OsaTimeTest()