/net-tools-3.6.0/libcoap/src/ |
D | coap_time.c | 29 struct timespec tv; in coap_clock_init() local 30 clock_gettime(COAP_CLOCK, &tv); in coap_clock_init() 32 struct timeval tv; in coap_clock_init() 33 gettimeofday(&tv, NULL); in coap_clock_init() 36 coap_clock_offset = tv.tv_sec; in coap_clock_init() 53 struct timespec tv; in coap_ticks() local 54 clock_gettime(COAP_CLOCK, &tv); in coap_ticks() 61 tmp = SHR_FP(tv.tv_nsec * Q(FRAC, (COAP_TICKS_PER_SECOND/1000000000.0)), FRAC); in coap_ticks() 65 struct timeval tv; in coap_ticks() local 66 gettimeofday(&tv, NULL); in coap_ticks() [all …]
|
/net-tools-3.6.0/tinydtls-0.8.2/ |
D | dtls_time.c | 69 struct timeval tv; in dtls_ticks() local 70 gettimeofday(&tv, NULL); in dtls_ticks() 71 *t = (tv.tv_sec - dtls_clock_offset) * DTLS_TICKS_PER_SECOND in dtls_ticks() 72 + (tv.tv_usec * DTLS_TICKS_PER_SECOND / 1000000); in dtls_ticks()
|
/net-tools-3.6.0/mbedtls-2.4.0/library/ |
D | net_sockets.c | 443 struct timeval tv; in mbedtls_net_usleep() 444 tv.tv_sec = usec / 1000000; in mbedtls_net_usleep() 447 tv.tv_usec = (suseconds_t) usec % 1000000; in mbedtls_net_usleep() 449 tv.tv_usec = usec % 1000000; in mbedtls_net_usleep() 451 select( 0, NULL, NULL, NULL, &tv ); in mbedtls_net_usleep() 498 struct timeval tv; in mbedtls_net_recv_timeout() local 508 tv.tv_sec = timeout / 1000; in mbedtls_net_recv_timeout() 509 tv.tv_usec = ( timeout % 1000 ) * 1000; in mbedtls_net_recv_timeout() 511 ret = select( fd + 1, &read_fds, NULL, NULL, timeout == 0 ? NULL : &tv ); in mbedtls_net_recv_timeout()
|
/net-tools-3.6.0/libcoap/examples/ |
D | tiny.c | 102 struct timeval tv; in main() local 140 tv.tv_sec = 5; tv.tv_usec = 0; in main() 142 select( 0, 0, 0, 0, &tv ); in main()
|
D | coap-server.c | 450 struct timeval tv, *timeout; in main() local 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() 513 timeout = &tv; in main() 515 tv.tv_usec = 0; in main() 516 tv.tv_sec = COAP_RESOURCE_CHECK_TIME; in main() 517 timeout = &tv; in main()
|
D | etsi_iot_01.c | 676 struct timeval tv, *timeout; in main() local 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() 732 timeout = &tv; in main() 734 tv.tv_usec = 0; in main() 735 tv.tv_sec = COAP_RESOURCE_CHECK_TIME_SEC; in main() 736 timeout = &tv; in main()
|
D | coap-rd.c | 677 struct timeval tv, *timeout; in main() local 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() 739 timeout = &tv; in main() 741 tv.tv_usec = 0; in main() 742 tv.tv_sec = COAP_RESOURCE_CHECK_TIME; in main() 743 timeout = &tv; in main()
|
D | client.c | 1030 struct timeval tv; in main() local 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() 1236 result = select(ctx->sockfd + 1, &readfds, 0, 0, &tv); in main()
|
/net-tools-3.6.0/ |
D | tunslip6.c | 128 struct timeval tv; in stamptime() local 133 gettimeofday(&tv, NULL) ; in stamptime() 134 msecs=tv.tv_usec/1000; in stamptime() 135 secs=tv.tv_sec; in stamptime() 1146 struct timeval tv; in main() local 1148 gettimeofday(&tv, NULL) ; in main() 1149 dmsec=(tv.tv_sec-delaystartsec)*1000+tv.tv_usec/1000-delaystartmsec; in main() 1160 struct timeval tv; in main() local 1161 gettimeofday(&tv, NULL) ; in main() 1164 delaystartsec =tv.tv_sec; in main() [all …]
|
D | echo-client.c | 405 struct timeval tv = {}; in main() local 633 tv.tv_sec = MAX_TIMEOUT; in main() 634 tv.tv_usec = 0; in main() 636 tv.tv_sec = 0; in main() 637 tv.tv_usec = 0; in main() 640 ret = select(fd + 1, &rfds, NULL, NULL, &tv); in main()
|
D | throughput-client.c | 352 struct timeval tv = {}; in main() local 532 tv.tv_sec = MAX_TIMEOUT; in main() 534 tv.tv_sec = 0; in main() 536 tv.tv_usec = 0; in main() 538 ret = select(fd + 1, &rfds, NULL, NULL, &tv); in main()
|
D | monitor_15_4.c | 172 struct timeval tv; in monitor_pcap_write() local 180 gettimeofday(&tv, NULL); in monitor_pcap_write() 181 frame.ts_sec = tv.tv_sec; in monitor_pcap_write() 182 frame.ts_usec = tv.tv_usec; in monitor_pcap_write()
|
D | coap-client.c | 981 struct timeval tv; in sleep_ms() local 983 tv.tv_sec = 0; in sleep_ms() 984 tv.tv_usec = ms * 1000; in sleep_ms() 986 select(1, NULL, NULL, NULL, &tv); in sleep_ms() 1575 struct timeval tv = {}; local 1802 tv.tv_sec = MAX_TIMEOUT; 1803 tv.tv_usec = 0; 1822 tv.tv_usec = ((nextpdu->t) % COAP_TICKS_PER_SECOND) * 1824 tv.tv_sec = (nextpdu->t) / COAP_TICKS_PER_SECOND; 1827 tv.tv_usec = ((obs_wait - now) % [all …]
|
D | echo-server.c | 385 struct timeval tv = {}; in main() local
|