/AliOS-Things-master/components/posix/src/ |
A D | time.c | 130 struct timespec tv = { .tv_sec = seconds, .tv_nsec = 0 }; in sleep() local 132 if (nanosleep(&tv, &tv)) in sleep() 133 return tv.tv_sec; in sleep() 140 struct timespec tv = { in usleep() local 145 return nanosleep(&tv, &tv); in usleep()
|
/AliOS-Things-master/components/SDL2/src/timer/unix/ |
A D | SDL_systimer.c | 204 struct timespec elapsed, tv; in SDL_Delay() local 206 struct timeval tv; in SDL_Delay() local 221 tv.tv_sec = elapsed.tv_sec; in SDL_Delay() 222 tv.tv_nsec = elapsed.tv_nsec; in SDL_Delay() 223 was_error = nanosleep(&tv, &elapsed); in SDL_Delay() 233 tv.tv_sec = ms / 1000; in SDL_Delay() 234 tv.tv_usec = (ms % 1000) * 1000; in SDL_Delay() 236 was_error = select(0, NULL, NULL, NULL, &tv); in SDL_Delay()
|
/AliOS-Things-master/components/py_engine/adapter/haas/ |
A D | modutime.c | 47 struct timeval tv; in time_localtime() local 48 gettimeofday(&tv, NULL); in time_localtime() 49 seconds = tv.tv_sec; in time_localtime() 92 struct timeval tv; in time_time() local 93 gettimeofday(&tv, NULL); in time_time() 94 return mp_obj_new_int(tv.tv_sec); in time_time()
|
A D | mphalport.c | 135 struct timeval tv; in mp_hal_time_ns() local 136 gettimeofday(&tv, NULL); in mp_hal_time_ns() 137 uint64_t ns = tv.tv_sec * 1000000000ULL; in mp_hal_time_ns() 138 ns += (uint64_t)tv.tv_usec * 1000ULL; in mp_hal_time_ns()
|
/AliOS-Things-master/components/py_engine/adapter/haas510/ |
A D | modutime.c | 46 struct timeval tv; in time_localtime() local 47 gettimeofday(&tv, NULL); in time_localtime() 48 seconds = tv.tv_sec; in time_localtime() 84 struct timeval tv; in time_time() local 85 gettimeofday(&tv, NULL); in time_time() 86 return mp_obj_new_int(tv.tv_sec); in time_time()
|
/AliOS-Things-master/components/py_engine/adapter/haas600/ |
A D | modutime.c | 46 struct timeval tv; in time_localtime() local 47 gettimeofday(&tv, NULL); in time_localtime() 48 seconds = tv.tv_sec; in time_localtime() 84 struct timeval tv; in time_time() local 85 gettimeofday(&tv, NULL); in time_time() 86 return mp_obj_new_int(tv.tv_sec); in time_time()
|
/AliOS-Things-master/components/SDL2/src/core/unix/ |
A D | SDL_poll.c | 58 struct timeval tv, *tvp = NULL; in SDL_IOReady() 74 tv.tv_sec = timeoutMS / 1000; in SDL_IOReady() 75 tv.tv_usec = (timeoutMS % 1000) * 1000; in SDL_IOReady() 76 tvp = &tv; in SDL_IOReady()
|
/AliOS-Things-master/components/SDL2/src/image/external/tiff-4.0.9/libtiff/ |
A D | tif_dir.c | 482 TIFFTagValue *tv; in _TIFFVSetField() local 506 tv = NULL; in _TIFFVSetField() 512 tv->value = NULL; in _TIFFVSetField() 521 if(tv == NULL) { in _TIFFVSetField() 539 tv->info = fip; in _TIFFVSetField() 540 tv->value = NULL; in _TIFFVSetField() 541 tv->count = 0; in _TIFFVSetField() 572 tv->count=ma; in _TIFFVSetField() 584 tv->count = 1; in _TIFFVSetField() 603 tv->value = _TIFFCheckMalloc(tif, tv->count, tv_size, in _TIFFVSetField() [all …]
|
/AliOS-Things-master/components/mbedtls/library/ |
A D | net_sockets.c | 459 struct timeval tv; in mbedtls_net_poll() local 496 tv.tv_sec = timeout / 1000; in mbedtls_net_poll() 497 tv.tv_usec = ( timeout % 1000 ) * 1000; in mbedtls_net_poll() 526 struct timeval tv; in mbedtls_net_usleep() 527 tv.tv_sec = usec / 1000000; in mbedtls_net_usleep() 530 tv.tv_usec = (suseconds_t) usec % 1000000; in mbedtls_net_usleep() 532 tv.tv_usec = usec % 1000000; in mbedtls_net_usleep() 534 select( 0, NULL, NULL, NULL, &tv ); in mbedtls_net_usleep() 581 struct timeval tv; in mbedtls_net_recv_timeout() local 591 tv.tv_sec = timeout / 1000; in mbedtls_net_recv_timeout() [all …]
|
/AliOS-Things-master/components/amp_adapter/platform/linux/ |
A D | aos_system.c | 435 struct timeval tv; in aos_now() local 437 gettimeofday(&tv, NULL); in aos_now() 438 timersub(&tv, &sys_start_time, &tv); in aos_now() 439 ns = tv.tv_sec * 1000000LL + tv.tv_usec; in aos_now() 445 struct timeval tv; in aos_now_ms() local 447 gettimeofday(&tv, NULL); in aos_now_ms() 448 timersub(&tv, &sys_start_time, &tv); in aos_now_ms() 449 ms = tv.tv_sec * 1000LL + tv.tv_usec / 1000; in aos_now_ms()
|
/AliOS-Things-master/components/amp_adapter/platform/aos/network/ |
A D | aos_udp.c | 194 struct timeval tv; in aos_udp_recvfrom() local 206 tv.tv_sec = timeout_ms / 1000; in aos_udp_recvfrom() 207 tv.tv_usec = (timeout_ms % 1000) * 1000; in aos_udp_recvfrom() 210 timeout_ms == 0 ? NULL : &tv); in aos_udp_recvfrom() 322 struct timeval tv; in aos_udp_read_timeout() local 338 tv.tv_sec = timeout / 1000; in aos_udp_read_timeout() 339 tv.tv_usec = (timeout % 1000) * 1000; in aos_udp_read_timeout() 342 select(socket_id + 1, &read_fds, NULL, NULL, timeout == 0 ? NULL : &tv); in aos_udp_read_timeout()
|
/AliOS-Things-master/components/mbedtls/platform/yoc/ |
A D | net_sockets.c | 325 struct timeval tv; in mbedtls_net_usleep() local 326 tv.tv_sec = usec / 1000000; in mbedtls_net_usleep() 327 tv.tv_usec = usec % 1000000; in mbedtls_net_usleep() 328 select( 0, NULL, NULL, NULL, &tv ); in mbedtls_net_usleep() 368 struct timeval tv; in mbedtls_net_recv_timeout() local 378 tv.tv_sec = timeout / 1000; in mbedtls_net_recv_timeout() 379 tv.tv_usec = ( timeout % 1000 ) * 1000; in mbedtls_net_recv_timeout() 382 ret = select( fd + 1, &read_fds, NULL, NULL, &tv ); in mbedtls_net_recv_timeout()
|
/AliOS-Things-master/components/linkkit/wrappers/platform/os/ |
A D | HAL_UDP_yoc.c | 178 struct timeval tv; in HAL_UDP_readTimeout() local 194 tv.tv_sec = timeout / 1000; in HAL_UDP_readTimeout() 195 tv.tv_usec = (timeout % 1000) * 1000; in HAL_UDP_readTimeout() 198 select(socket_id + 1, &read_fds, NULL, NULL, timeout == 0 ? NULL : &tv); in HAL_UDP_readTimeout() 296 struct timeval tv; in HAL_UDP_recvfrom() local 308 tv.tv_sec = timeout_ms / 1000; in HAL_UDP_recvfrom() 309 tv.tv_usec = (timeout_ms % 1000) * 1000; in HAL_UDP_recvfrom() 312 timeout_ms == 0 ? NULL : &tv); in HAL_UDP_recvfrom()
|
A D | HAL_OS_yoc.c | 191 struct timespec tv = { 0 }; in HAL_UptimeMs() local 194 clock_gettime(CLOCK_MONOTONIC, &tv); in HAL_UptimeMs() 196 time_ms = tv.tv_sec * 1000 + tv.tv_nsec / 1000000; in HAL_UptimeMs() 417 struct timeval tv; in HAL_GetTimeStr() local 424 gettimeofday(&tv, NULL); in HAL_GetTimeStr() 425 localtime_r(&tv.tv_sec, &tm); in HAL_GetTimeStr() 429 snprintf(buf + str_len, len, ".%3.3d", (int)(tv.tv_usec) / 1000); in HAL_GetTimeStr()
|
/AliOS-Things-master/components/linkkit/wrappers/os/ |
A D | HAL_UDP_rhino.c | 185 struct timeval tv; in HAL_UDP_readTimeout() local 201 tv.tv_sec = timeout / 1000; in HAL_UDP_readTimeout() 202 tv.tv_usec = (timeout % 1000) * 1000; in HAL_UDP_readTimeout() 205 select(socket_id + 1, &read_fds, NULL, NULL, timeout == 0 ? NULL : &tv); in HAL_UDP_readTimeout() 303 struct timeval tv; in HAL_UDP_recvfrom() local 315 tv.tv_sec = timeout_ms / 1000; in HAL_UDP_recvfrom() 316 tv.tv_usec = (timeout_ms % 1000) * 1000; in HAL_UDP_recvfrom() 319 timeout_ms == 0 ? NULL : &tv); in HAL_UDP_recvfrom()
|
/AliOS-Things-master/components/websocket/src/ |
A D | rws_thread.c | 191 struct timeval tv; in rws_sem_wait() local 192 gettimeofday(&tv, NULL); in rws_sem_wait() 194 abs_timeout.tv_sec = tv.tv_sec + timeout_ms / 1000; in rws_sem_wait() 195 abs_timeout.tv_nsec = tv.tv_usec * 1000 + (timeout_ms % 1000) * 1000000; in rws_sem_wait()
|
/AliOS-Things-master/components/libc_stub/compilers/armlibc/ |
A D | armcc_libc.c | 22 int gettimeofday(struct timeval *tv, void *tzp) in gettimeofday() argument 25 tv->tv_sec = t / 1000; in gettimeofday() 26 tv->tv_usec = (t % 1000) * 1000; in gettimeofday()
|
A D | armcc_libc_uspace.c | 29 int gettimeofday(struct timeval *tv, void *tzp) in gettimeofday() argument 35 tv->tv_sec = t / 1000; in gettimeofday() 36 tv->tv_usec = (t % 1000) * 1000; in gettimeofday()
|
/AliOS-Things-master/components/select/example/ |
A D | select_example.c | 26 struct timeval tv = { in select_example() local 44 ret = aos_select(maxfd, &readset, &writeset, &exceptset, &tv); in select_example() 48 ret = aos_select(maxfd, &readset, &writeset, &exceptset, &tv); in select_example()
|
/AliOS-Things-master/components/mqtt/MQTTClient-C/ |
A D | MQTTLinux.c | 97 struct timeval tv; in linux_write() local 99 tv.tv_sec = 0; /* 30 Secs Timeout */ in linux_write() 100 tv.tv_usec = timeout_ms * 1000; // Not init'ing this can cause strange errors in linux_write() 102 setsockopt(n->my_socket, SOL_SOCKET, SO_SNDTIMEO, (char *)&tv,sizeof(struct timeval)); in linux_write()
|
/AliOS-Things-master/solutions/eduk1_demo/k1_apps/homepage/ |
A D | homepage.c | 100 struct timespec tv; in homepage_task() local 111 clock_gettime(CLOCK_REALTIME, &tv); in homepage_task() 112 info = gmtime(&tv); in homepage_task()
|
/AliOS-Things-master/components/amp/engine/duktape_engine/duktape/ |
A D | duktape.c | 19628 if (tv != NULL && DUK_TVAL_IS_STRING(tv)) { in duk__dump_string_prop() 19645 if (tv != NULL && DUK_TVAL_IS_BUFFER(tv)) { in duk__dump_buffer_prop() 19664 if (tv != NULL && DUK_TVAL_IS_NUMBER(tv)) { in duk__dump_uint32_prop() 19853 tv++; in duk__dump_func() 24977 tv++; in duk_insert_undefined_n() 25130 for (tv = tv_dst; tv < tv_src; tv++) { in duk_remove_n() 25137 for (tv = tv_newtop; tv < thr->valstack_top; tv++) { in duk_remove_n() 29676 tv--; in duk__pop_n_unsafe_raw() 29686 tv--; in duk__pop_n_unsafe_raw() 29734 tv--; in duk_pop_n_nodecref_unsafe() [all …]
|
/AliOS-Things-master/components/drivers/external_device/sh1106/src/ |
A D | sh1106.c | 36 struct timeval tv; variable 309 gettimeofday(&tv, NULL); in OLED_Refresh_GRAM() 313 printf("pyszip|%d%d.", tv.tv_sec, tv.tv_usec / 1000); in OLED_Refresh_GRAM() 314 printf("%03ld|", tv.tv_usec / 1000); in OLED_Refresh_GRAM() 323 printf("pysorg|%d%d.", tv.tv_sec, tv.tv_usec / 1000); in OLED_Refresh_GRAM() 324 printf("%03ld|", tv.tv_usec / 1000); in OLED_Refresh_GRAM()
|
/AliOS-Things-master/components/mbedtls/platform/aos/library/ |
A D | net_sockets.c | 327 struct timeval tv; in mbedtls_net_recv_timeout() local 337 tv.tv_sec = timeout / 1000; in mbedtls_net_recv_timeout() 338 tv.tv_usec = ( timeout % 1000 ) * 1000; in mbedtls_net_recv_timeout() 340 ret = select( fd + 1, &read_fds, NULL, NULL, timeout == 0 ? NULL : &tv ); in mbedtls_net_recv_timeout()
|
/AliOS-Things-master/components/lwip/lwip2.0.0/netif/ppp/ |
A D | demand.c | 326 struct timeval tv; local 333 tv.tv_sec = 1; 334 tv.tv_usec = 0; 335 select(0,NULL,NULL,NULL,&tv); /* Sleep for 1 Seconds */
|