Home
last modified time | relevance | path

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

/third_party/ltp/testcases/kernel/syscalls/timer_settime/
Dtimer_settime01.c32 static struct tst_ts timenow; variable
128 timenow.type = tv->ts_type; in run()
129 if (tv->clock_gettime(clock, tst_ts_get(&timenow)) < 0) { in run()
135 tst_ts_add_us(timenow, val); in run()
136 tst_its_set_value_from_ts(&new_set, timenow); in run()
/third_party/openssl/ssl/
Dd1_lib.c289 struct timeval timenow; in dtls1_get_timeout() local
297 get_current_time(&timenow); in dtls1_get_timeout()
300 if (s->d1->next_timeout.tv_sec < timenow.tv_sec || in dtls1_get_timeout()
301 (s->d1->next_timeout.tv_sec == timenow.tv_sec && in dtls1_get_timeout()
302 s->d1->next_timeout.tv_usec <= timenow.tv_usec)) { in dtls1_get_timeout()
309 timeleft->tv_sec -= timenow.tv_sec; in dtls1_get_timeout()
310 timeleft->tv_usec -= timenow.tv_usec; in dtls1_get_timeout()
/third_party/openssl/crypto/bio/
Dbss_dgram.c209 struct timeval timenow, timeleft; in dgram_adjust_rcv_timeout() local
233 get_current_time(&timenow); in dgram_adjust_rcv_timeout()
237 if (timeleft.tv_usec < timenow.tv_usec) { in dgram_adjust_rcv_timeout()
238 timeleft.tv_usec = 1000000 - timenow.tv_usec + timeleft.tv_usec; in dgram_adjust_rcv_timeout()
241 timeleft.tv_usec -= timenow.tv_usec; in dgram_adjust_rcv_timeout()
243 if (timeleft.tv_sec < timenow.tv_sec) { in dgram_adjust_rcv_timeout()
247 timeleft.tv_sec -= timenow.tv_sec; in dgram_adjust_rcv_timeout()