Searched refs:COAP_TICKS_PER_SECOND (Results 1 – 10 of 10) sorted by relevance
30 #define COAP_TICKS_PER_SECOND 1000 macro47 return t / COAP_TICKS_PER_SECOND; in coap_ticks_to_rt()64 #define COAP_TICKS_PER_SECOND CLOCK_SECOND macro75 return t / COAP_TICKS_PER_SECOND; in coap_ticks_to_rt()99 #define COAP_TICKS_PER_SECOND 1000 macro
61 tmp = SHR_FP(tv.tv_nsec * Q(FRAC, (COAP_TICKS_PER_SECOND/1000000000.0)), FRAC); in coap_ticks()73 tmp = SHR_FP(tv.tv_usec * Q(FRAC, (COAP_TICKS_PER_SECOND/1000000.0)), FRAC); in coap_ticks()78 *t = tmp + (tv.tv_sec - coap_clock_offset) * COAP_TICKS_PER_SECOND; in coap_ticks()83 return coap_clock_offset + (t / COAP_TICKS_PER_SECOND); in coap_ticks_to_rt()
91 (unsigned int)(t % COAP_TICKS_PER_SECOND)); in print_timestamp()
404 etimer_set(&c->notify_timer, COAP_RESOURCE_CHECK_TIME * COAP_TICKS_PER_SECOND); in coap_new_context()695 return SHR_FP((COAP_TICKS_PER_SECOND * result), FRAC_BITS); in calc_timeout()
133 now = my_clock_base + (t / COAP_TICKS_PER_SECOND); in hnd_get_time()190 my_clock_base -= t / COAP_TICKS_PER_SECOND; in hnd_put_time()244 (void *)(COAP_TICKS_PER_SECOND * delay)); in hnd_get_async()266 (void *)((unsigned long)async->appdata + 15 * COAP_TICKS_PER_SECOND); in check_async()511 tv.tv_usec = ((nextpdu->t) % COAP_TICKS_PER_SECOND) * 1000000 / COAP_TICKS_PER_SECOND; in main()512 tv.tv_sec = (nextpdu->t) / COAP_TICKS_PER_SECOND; in main()
75 *timer += seconds * COAP_TICKS_PER_SECOND; in set_timeout()1223 tv.tv_usec = ((nextpdu->t) % COAP_TICKS_PER_SECOND) * 1000000 / COAP_TICKS_PER_SECOND; in main()1224 tv.tv_sec = (nextpdu->t) / COAP_TICKS_PER_SECOND; in main()1228 tv.tv_usec = ((obs_wait - now) % COAP_TICKS_PER_SECOND) * 1000000 / COAP_TICKS_PER_SECOND; in main()1229 tv.tv_sec = (obs_wait - now) / COAP_TICKS_PER_SECOND; in main()1231 tv.tv_usec = ((max_wait - now) % COAP_TICKS_PER_SECOND) * 1000000 / COAP_TICKS_PER_SECOND; in main()1232 tv.tv_sec = (max_wait - now) / COAP_TICKS_PER_SECOND; in main()
451 (void *)(COAP_TICKS_PER_SECOND * delay)); in hnd_get_separate()473 (void *)((unsigned long)async->appdata + 15 * COAP_TICKS_PER_SECOND); in check_async()730 tv.tv_usec = ((nextpdu->t - now) % COAP_TICKS_PER_SECOND) * 1000000 / COAP_TICKS_PER_SECOND; in main()731 tv.tv_sec = (nextpdu->t - now) / COAP_TICKS_PER_SECOND; in main()
737 tv.tv_usec = ((nextpdu->t - now) % COAP_TICKS_PER_SECOND) * 1000000 / COAP_TICKS_PER_SECOND; in main()738 tv.tv_sec = (nextpdu->t - now) / COAP_TICKS_PER_SECOND; in main()
384 *timer += seconds * COAP_TICKS_PER_SECOND; in set_coap_timeout()1822 tv.tv_usec = ((nextpdu->t) % COAP_TICKS_PER_SECOND) *1823 1000000 / COAP_TICKS_PER_SECOND;1824 tv.tv_sec = (nextpdu->t) / COAP_TICKS_PER_SECOND;1828 COAP_TICKS_PER_SECOND) * 1000000 /1829 COAP_TICKS_PER_SECOND;1831 COAP_TICKS_PER_SECOND;1834 COAP_TICKS_PER_SECOND) * 1000000 /1835 COAP_TICKS_PER_SECOND;1837 COAP_TICKS_PER_SECOND;
127 now = my_clock_base + (t / COAP_TICKS_PER_SECOND); in hnd_get_time()