Lines Matching refs:tv
64 struct timespec tv;
65 clock_gettime(COAP_CLOCK, &tv);
67 struct timeval tv;
68 gettimeofday(&tv, NULL);
71 coap_clock_offset = tv.tv_sec;
88 struct timespec tv;
89 clock_gettime(COAP_CLOCK, &tv);
96 tmp = SHR_FP(tv.tv_nsec * Q(FRAC, (COAP_TICKS_PER_SECOND/1000000000.0)), FRAC);
100 struct timeval tv;
101 gettimeofday(&tv, NULL);
103 * EFAULT One of tv or tz pointed outside the accessible address space.
108 tmp = SHR_FP(tv.tv_usec * Q(FRAC, (COAP_TICKS_PER_SECOND/1000000.0)), FRAC);
113 *t = tmp + (tv.tv_sec - coap_clock_offset) * COAP_TICKS_PER_SECOND;