Lines Matching refs:nst
6 nstime_t nst; in TEST_BEGIN() local
8 nstime_init(&nst, 42000000043); in TEST_BEGIN()
9 assert_u64_eq(nstime_ns(&nst), 42000000043, "ns incorrectly read"); in TEST_BEGIN()
10 assert_u64_eq(nstime_sec(&nst), 42, "sec incorrectly read"); in TEST_BEGIN()
11 assert_u64_eq(nstime_nsec(&nst), 43, "nsec incorrectly read"); in TEST_BEGIN()
16 nstime_t nst; in TEST_BEGIN() local
18 nstime_init2(&nst, 42, 43); in TEST_BEGIN()
19 assert_u64_eq(nstime_sec(&nst), 42, "sec incorrectly read"); in TEST_BEGIN()
20 assert_u64_eq(nstime_nsec(&nst), 43, "nsec incorrectly read"); in TEST_BEGIN()
210 nstime_t nst; in TEST_BEGIN() local
212 nstime_init(&nst, 0); in TEST_BEGIN()
214 assert_false(nstime_update(&nst), "Basic time update failed."); in TEST_BEGIN()
220 nstime_add(&nst, &addend); in TEST_BEGIN()
224 nstime_copy(&nst0, &nst); in TEST_BEGIN()
225 assert_true(nstime_update(&nst), in TEST_BEGIN()
227 assert_d_eq(nstime_compare(&nst, &nst0), 0, in TEST_BEGIN()