Searched refs:hwTime (Results 1 – 1 of 1) sorted by relevance
1444 static VOID OsGetHwTime(struct timespec *hwTime) in OsGetHwTime() argument1450 hwTime->tv_sec = nowNsec / OS_SYS_NS_PER_SECOND; in OsGetHwTime()1451 hwTime->tv_nsec = nowNsec % OS_SYS_NS_PER_SECOND; in OsGetHwTime()1456 struct timespec hwTime = {0}; in OsGetRealTime() local1457 OsGetHwTime(&hwTime); in OsGetRealTime()1459 realTime->tv_nsec = hwTime.tv_nsec + g_accDeltaFromSet.tv_nsec; in OsGetRealTime()1460 …realTime->tv_sec = hwTime.tv_sec + g_accDeltaFromSet.tv_sec + (realTime->tv_nsec >= OS_SYS_NS_PER_… in OsGetRealTime()1468 struct timespec hwTime = {0}; in OsSetRealTime() local1469 OsGetHwTime(&hwTime); in OsSetRealTime()1471 g_accDeltaFromSet.tv_nsec = realTime->tv_nsec - hwTime.tv_nsec; in OsSetRealTime()[all …]