Home
last modified time | relevance | path

Searched refs:COAP_TICKS_PER_SECOND (Results 1 – 10 of 10) sorted by relevance

/net-tools-2.7.6/libcoap/include/coap/
Dcoap_time.h30 #define COAP_TICKS_PER_SECOND 1000 macro
47 return t / COAP_TICKS_PER_SECOND; in coap_ticks_to_rt()
64 #define COAP_TICKS_PER_SECOND CLOCK_SECOND macro
75 return t / COAP_TICKS_PER_SECOND; in coap_ticks_to_rt()
99 #define COAP_TICKS_PER_SECOND 1000 macro
/net-tools-2.7.6/libcoap/src/
Dcoap_time.c61 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()
Ddebug.c91 (unsigned int)(t % COAP_TICKS_PER_SECOND)); in print_timestamp()
Dnet.c404 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()
/net-tools-2.7.6/libcoap/examples/
Dcoap-server.c133 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()
Dclient.c75 *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()
Detsi_iot_01.c451 (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()
Dcoap-rd.c737 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()
/net-tools-2.7.6/
Dcoap-client.c384 *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;
/net-tools-2.7.6/libcoap/examples/contiki/
Dserver.c127 now = my_clock_base + (t / COAP_TICKS_PER_SECOND); in hnd_get_time()