Lines Matching full:diff
54 int64_t diff, error; in ZTEST() local
91 diff = end_time - start_time; in ZTEST()
92 error = diff / 1000 - WAIT_TIME / acc_ratio; in ZTEST()
98 diff / 1000.0, in ZTEST()
109 diff = native_rtc_gettime_us(RTC_CLOCK_PSEUDOHOSTREALTIME) - in ZTEST()
111 error = diff - WAIT_TIME * 1000; in ZTEST()
116 diff / 1000.0, in ZTEST()
123 diff = native_rtc_gettime_us(RTC_CLOCK_BOOT) - in ZTEST()
126 zassert_true(diff == WAIT_TIME * 1000, in ZTEST()
129 diff = native_rtc_gettime_us(RTC_CLOCK_REALTIME) - in ZTEST()
132 zassert_true(diff == WAIT_TIME * 1000, in ZTEST()
150 int64_t diff, error; in ZTEST() local
155 diff = native_rtc_gettime_us(RTC_CLOCK_PSEUDOHOSTREALTIME) in ZTEST()
158 error = diff - offset; in ZTEST()
162 diff = native_rtc_gettime_us(RTC_CLOCK_REALTIME) - start_rtc_time[0]; in ZTEST()
164 zassert_true(diff == offset, "Offsetting RTC failed\n"); in ZTEST()