Home
last modified time | relevance | path

Searched refs:nts (Results 1 – 1 of 1) sorted by relevance

/Zephyr-Core-2.7.6/tests/posix/common/src/
Dclock.c60 struct timespec nts; in test_posix_realtime() local
61 nts.tv_sec = 1514821501; in test_posix_realtime()
62 nts.tv_nsec = NSEC_PER_SEC / 2U; in test_posix_realtime()
65 zassert_equal(clock_settime(CLOCK_INVALID, &nts), -1, in test_posix_realtime()
69 ret = clock_settime(CLOCK_MONOTONIC, &nts); in test_posix_realtime()
72 ret = clock_settime(CLOCK_REALTIME, &nts); in test_posix_realtime()
89 (int64_t)nts.tv_sec * NSEC_PER_SEC) + in test_posix_realtime()
90 ((int64_t)rts.tv_nsec - (int64_t)nts.tv_nsec); in test_posix_realtime()