Searched refs:curtime (Results 1 – 2 of 2) sorted by relevance
/Zephyr-latest/lib/posix/options/ |
D | timespec_to_timeout.c | 14 struct timespec curtime; in timespec_to_timeoutms() local 20 clock_gettime(CLOCK_MONOTONIC, &curtime); in timespec_to_timeoutms() 21 secs = abstime->tv_sec - curtime.tv_sec; in timespec_to_timeoutms() 22 nsecs = abstime->tv_nsec - curtime.tv_nsec; in timespec_to_timeoutms()
|
/Zephyr-latest/tests/posix/common/src/ |
D | mqueue.c | 35 struct timespec curtime; in sender_thread() local 38 clock_gettime(CLOCK_MONOTONIC, &curtime); in sender_thread() 39 curtime.tv_sec += 1; in sender_thread() 40 zassert_false(mq_timedsend(mqd, send_data, MESSAGE_SIZE, 0, &curtime), in sender_thread() 53 struct timespec curtime; in receiver_thread() local 56 clock_gettime(CLOCK_MONOTONIC, &curtime); in receiver_thread() 57 curtime.tv_sec += 1; in receiver_thread() 58 mq_timedreceive(mqd, rec_data, MESSAGE_SIZE, 0, &curtime); in receiver_thread()
|