Lines Matching refs:nst
7 nstime_t nst; in TEST_BEGIN() local
9 nstime_init(&nst, 42000000043); in TEST_BEGIN()
10 assert_u64_eq(nstime_ns(&nst), 42000000043, "ns incorrectly read"); in TEST_BEGIN()
11 assert_u64_eq(nstime_sec(&nst), 42, "sec incorrectly read"); in TEST_BEGIN()
12 assert_u64_eq(nstime_nsec(&nst), 43, "nsec incorrectly read"); in TEST_BEGIN()
18 nstime_t nst; in TEST_BEGIN() local
20 nstime_init2(&nst, 42, 43); in TEST_BEGIN()
21 assert_u64_eq(nstime_sec(&nst), 42, "sec incorrectly read"); in TEST_BEGIN()
22 assert_u64_eq(nstime_nsec(&nst), 43, "nsec incorrectly read"); in TEST_BEGIN()
188 nstime_t nst; in TEST_BEGIN() local
190 nstime_init(&nst, 0); in TEST_BEGIN()
192 assert_false(nstime_update(&nst), "Basic time update failed."); in TEST_BEGIN()
198 nstime_add(&nst, &addend); in TEST_BEGIN()
202 nstime_copy(&nst0, &nst); in TEST_BEGIN()
203 assert_true(nstime_update(&nst), in TEST_BEGIN()
205 assert_d_eq(nstime_compare(&nst, &nst0), 0, in TEST_BEGIN()