Lines Matching full:time
13 #include <time.h>
20 static char *us_time_to_str(char *dest, uint64_t time) in us_time_to_str() argument
22 if (time != NSI_NEVER) { in us_time_to_str()
28 hour = (time / 3600U / 1000000U) % 24; in us_time_to_str()
29 minute = (time / 60U / 1000000U) % 60; in us_time_to_str()
30 second = (time / 1000000U) % 60; in us_time_to_str()
31 us = time % 1000000; in us_time_to_str()
42 #define TOLERANCE 20 /* ms Tolerance in native_posix time after WAIT_TIME */
46 * @brief Test native_posix real time control
51 uint64_t time; in ZTEST() local
60 time = native_rtc_gettime_us(RTC_CLOCK_REALTIME); in ZTEST()
62 us_time_to_str(time_s, time); in ZTEST()
66 * We override the real time speed in case it was set from command in ZTEST()
87 * Check that during the sleep, the correct amount of real time in ZTEST()
103 "Real time error over TOLERANCE"); in ZTEST()
121 "PSEUDOHOSTREALTIME time error over TOLERANCE"); in ZTEST()