Searched refs:timenow (Results 1 – 3 of 3) sorted by relevance
32 static struct tst_ts timenow; variable128 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()
289 struct timeval timenow; in dtls1_get_timeout() local297 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()
209 struct timeval timenow, timeleft; in dgram_adjust_rcv_timeout() local233 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()