Searched refs:tp (Results 1 – 6 of 6) sorted by relevance
31 static void Ms2TimeSpec(struct timespec *tp, uint32_t ms) in Ms2TimeSpec() argument33 tp->tv_sec = ms / LOSCFG_BASE_CORE_MS_PRE_SECOND; in Ms2TimeSpec()34 ms -= tp->tv_sec * LOSCFG_BASE_CORE_MS_PRE_SECOND; in Ms2TimeSpec()35 …tp->tv_nsec = (long)(((unsigned long long)ms * OS_SYS_NS_PER_SECOND) / LOSCFG_BASE_CORE_MS_PRE_SEC… in Ms2TimeSpec()
84 struct timespec tp; in RunTests() local86 tp.tv_sec = timeoutsec; in RunTests()87 tp.tv_nsec = 0; in RunTests()88 if (sigtimedwait(&set, nullptr, &tp) == -1) { in RunTests()
32 static void AttestMs2TimeSpec(struct timespec *tp, uint32_t ms) in AttestMs2TimeSpec() argument34 if (tp == NULL) { in AttestMs2TimeSpec()38 tp->tv_sec = (time_t)(ms / LOSCFG_BASE_CORE_MS_PER_SECOND); in AttestMs2TimeSpec()39 ms -= (uint32_t)(tp->tv_sec * LOSCFG_BASE_CORE_MS_PER_SECOND); in AttestMs2TimeSpec()40 …tp->tv_nsec = (long)(((unsigned long long)ms * OS_SYS_NS_PER_SECOND) / LOSCFG_BASE_CORE_MS_PER_SEC… in AttestMs2TimeSpec()
804 -tp [TESTPART]: 指定部件,可独立使用。805 -tm [TESTMODULE]: 指定模块,不可独立使用,需结合-tp指定上级部件使用。846 -tp [TESTPART]: 指定部件,可独立使用。847 -tm [TESTMODULE]: 指定模块,不可独立使用,需结合-tp指定上级部件使用。
22 std::chrono::time_point<std::chrono::system_clock, std::chrono::milliseconds> tp = in GetCurrentLocalTimeStamp() local24 auto tmp = std::chrono::duration_cast<std::chrono::milliseconds>(tp.time_since_epoch()); in GetCurrentLocalTimeStamp()
36 std::chrono::time_point<std::chrono::system_clock, std::chrono::milliseconds> tp = in GetCurrentLocalTimeStamp() local38 auto tmp = std::chrono::duration_cast<std::chrono::milliseconds>(tp.time_since_epoch()); in GetCurrentLocalTimeStamp()