Home
last modified time | relevance | path

Searched refs:tv_sec (Results 1 – 25 of 93) sorted by relevance

1234

/AliOS-Things-master/components/posix/src/
A Dtime.c19 res->tv_sec = 0; in clock_getres()
36 tp->tv_sec = time_ms / 1000; in clock_gettime()
40 tp->tv_sec = time_ms / 1000; in clock_gettime()
61 time_ms = (tp->tv_sec * 1000) + (tp->tv_nsec / 1000000); in clock_settime()
76 if ((rqtp == NULL) || (rqtp->tv_sec < 0) || (rqtp->tv_nsec < 0) in clock_nanosleep()
92 time_ms = (rqtp->tv_sec - tp.tv_sec) * 1000 + (rqtp->tv_nsec - tp.tv_nsec) / 1000000; in clock_nanosleep()
100 time_ms = rqtp->tv_sec * 1000 + rqtp->tv_nsec / 1000000; in clock_nanosleep()
122 time_ms = (rqtp->tv_sec * 1000) + (rqtp->tv_nsec / 1000000); in nanosleep()
130 struct timespec tv = { .tv_sec = seconds, .tv_nsec = 0 }; in sleep()
133 return tv.tv_sec; in sleep()
[all …]
A Dsemaphore.c108 if ((abs_timeout->tv_sec < 0) || (abs_timeout->tv_nsec < 0) in sem_timedwait()
118 rel_time.tv_sec = abs_timeout->tv_sec - cur_time.tv_sec; in sem_timedwait()
121 timeout_ms = ((rel_time.tv_sec > 0) ? rel_time.tv_sec : 0) * 1000 + in sem_timedwait()
A Dpthread_cond.c205 timeout_ms = (abstime->tv_sec - now_tp.tv_sec) * 1000 + in pthread_cond_timedwait()
210 timeout_ms = (abstime->tv_sec - now_tv.tv_sec) * 1000 + in pthread_cond_timedwait()
235 timeout_ms = ((reltime->tv_sec) * 1000) + ((reltime->tv_nsec) / 1000000); in pthread_cond_timedwait_relative_np()
A Dtimer.c41 return ((uint64_t)t->tv_sec * 1000000000UL + t->tv_nsec); in timespec_to_nanosecond()
48 ret_time.tv_sec = ns / 1000000000UL; in nanosecond_to_timespec()
309 value->it_interval.tv_sec = time_ns[0]; in timer_gettime()
311 value->it_value.tv_sec = time_ns[2]; in timer_gettime()
/AliOS-Things-master/components/SDL2/src/timer/unix/
A DSDL_systimer.c120 …ticks = (Uint32)((now.tv_sec - start_ts.tv_sec) * 1000 + (now.tv_nsec - start_ts.tv_nsec) / 100000… in SDL_GetTicks()
132 … ticks = (Uint32)((now.tv_sec - start_tv.tv_sec) * 1000 + (now.tv_usec - start_tv.tv_usec) / 1000); in SDL_GetTicks()
150 ticks = now.tv_sec; in SDL_GetPerformanceCounter()
163 ticks = now.tv_sec; in SDL_GetPerformanceCounter()
212 elapsed.tv_sec = ms / 1000; in SDL_Delay()
221 tv.tv_sec = elapsed.tv_sec; in SDL_Delay()
233 tv.tv_sec = ms / 1000; in SDL_Delay()
/AliOS-Things-master/components/mqtt/MQTTClient-C/
A DMQTTLinux.c30 return res.tv_sec < 0 || (res.tv_sec == 0 && res.tv_usec <= 0); in TimerIsExpired()
58 return (res.tv_sec < 0) ? 0 : res.tv_sec * 1000 + res.tv_usec / 1000; in TimerLeftMS()
65 if (interval.tv_sec < 0 || (interval.tv_sec == 0 && interval.tv_usec <= 0)) in linux_read()
67 interval.tv_sec = 0; in linux_read()
99 tv.tv_sec = 0; /* 30 Secs Timeout */ in linux_write()
/AliOS-Things-master/components/amp_adapter/platform/linux/peripheral/
A Daos_hal_timer.c53 ts.it_interval.tv_sec = tim->config.period / 1000000; in aos_hal_timer_start()
57 ts.it_interval.tv_sec = 0;; in aos_hal_timer_start()
62 ts.it_value.tv_sec = tim->config.period / 1000000; in aos_hal_timer_start()
78 ts.it_interval.tv_sec = 0; in aos_hal_timer_stop()
82 ts.it_value.tv_sec = 0; in aos_hal_timer_stop()
/AliOS-Things-master/components/SDL2/src/thread/pthread/
A DSDL_syscond.c115 abstime.tv_sec += ms / 1000; in SDL_CondWaitTimeout()
119 abstime.tv_sec = delta.tv_sec + (ms / 1000); in SDL_CondWaitTimeout()
123 abstime.tv_sec += 1; in SDL_CondWaitTimeout()
A DSDL_syssem.c139 ts_timeout.tv_sec += timeout / 1000; in SDL_SemWaitTimeout()
144 ts_timeout.tv_sec = now.tv_sec + (timeout / 1000); in SDL_SemWaitTimeout()
150 ts_timeout.tv_sec += 1; in SDL_SemWaitTimeout()
/AliOS-Things-master/components/linkkit/wrappers/os/
A DHAL_TLS_itls.c131 sendtimeout.tv_sec = timeout; in mbedtls_net_connect_timeout()
141 sendtimeout.tv_sec); in mbedtls_net_connect_timeout()
286 (int)((tv2.tv_sec - tv1.tv_sec) * 1000000 + in _TLSConnectNetwork()
366 (int)((tv2.tv_sec - tv1.tv_sec) * 1000000 + in _network_ssl_read()
402 (int)((tv2.tv_sec - tv1.tv_sec) * 1000000 + in _network_ssl_write()
/AliOS-Things-master/components/libc_stub/compilers/armlibc/sys/
A Dtime.h22 long tv_sec; /* seconds */ member
33 time_t tv_sec; /* seconds */ member
/AliOS-Things-master/components/libc_stub/compilers/iar/sys/
A Dtime.h22 long tv_sec; /* seconds */ member
33 time_t tv_sec; /* seconds */ member
/AliOS-Things-master/components/amp_adapter/platform/linux/
A Daos_system.c202 ts.tv_sec += sec; in aos_sem_wait()
367 ts.it_interval.tv_sec = amp_timer->ms / 1000; in aos_timer_start()
371 ts.it_interval.tv_sec = 0;; in aos_timer_start()
376 ts.it_value.tv_sec = amp_timer->ms / 1000; in aos_timer_start()
395 ts.it_interval.tv_sec = 0; in aos_timer_stop()
399 ts.it_value.tv_sec = 0; in aos_timer_stop()
439 ns = tv.tv_sec * 1000000LL + tv.tv_usec; in aos_now()
449 ms = tv.tv_sec * 1000LL + tv.tv_usec / 1000; in aos_now_ms()
461 strftime(buffer, len, "%m-%d %H:%M:%S", localtime(&curTime.tv_sec)); in aos_now_time_str()
/AliOS-Things-master/components/minilibc/libc/
A Dclock_gettime.c138 (ts_end.tv_sec * 1000000000 + ts_end.tv_nsec) - in clock_timer_start()
139 (ts_begin.tv_sec * 1000000000 + ts_begin.tv_nsec); in clock_timer_start()
166 tp->tv_sec = systimer_val / APB_FREQ; in clock_gettime()
/AliOS-Things-master/components/SDL2/src/timer/psp/
A DSDL_systimer.c64 ticks=(now.tv_sec-start.tv_sec)*1000+(now.tv_usec-start.tv_usec)/1000; in SDL_GetTicks()
/AliOS-Things-master/components/sntp/src/
A Dsntp.c162 packet->txTm_s = htonl(local_time.tv_sec); in sntp_init_request_packet()
180 t3_s = local_time.tv_sec; in sntp_process_time()
199 time->tv_sec = real_time_s + (g_timezone.tz_minuteswest + g_timezone.tz_dsttime * 60) * 60; in sntp_process_time()
269 timeout_val.tv_sec = timeout_ms / 1000; in sntp_query_server()
349 … aos_calendar_time_set(ntp_time->tv_sec * (uint64_t)1000 + (uint64_t)(ntp_time->tv_usec / 1000)); in sntp_get_time()
374 gt = gmtime(&ntp_time.tv_sec); in sntp_request()
/AliOS-Things-master/components/SDL2/src/image/external/libwebp-1.0.2/examples/
A Dstopwatch.h56 delta_sec = (double)watch->tv_sec - old_value.tv_sec; in StopwatchReadAndReset()
/AliOS-Things-master/components/amp_adapter/platform/aos/network/
A Daos_tcp.c143 timeout.tv_sec = t_left / 1000; in aos_tcp_write()
205 timestart_ms = timestart.tv_sec * 1000 + timestart.tv_usec / 1000; in aos_tcp_read()
210 timenow_ms = timenow.tv_sec * 1000 + timenow.tv_usec / 1000; in aos_tcp_read()
218 timeselect.tv_sec = timeselect_ms / 1000; in aos_tcp_read()
/AliOS-Things-master/components/mbedtls/library/
A Dtiming.c241 return( ( tv_cur.tv_sec - tv_init.tv_sec ) * 1000000 in mbedtls_timing_hardclock()
314 delta = ( now.tv_sec - t->start.tv_sec ) * 1000ul in mbedtls_timing_get_timer()
/AliOS-Things-master/components/uvoice/internal/
A Duvoice_linux.h112 return tt.tv_sec * 1000 + tt.tv_usec / 1000; in os_current_time()
304 ts.tv_sec = tt.tv_sec + timeout / 1000; in os_sem_wait()
306 ts.tv_sec += ts.tv_nsec / (1000 * 1000 * 1000); in os_sem_wait()
/AliOS-Things-master/components/py_engine/adapter/haas/
A Dmodutime.c49 seconds = tv.tv_sec; in time_localtime()
94 return mp_obj_new_int(tv.tv_sec); in time_time()
/AliOS-Things-master/components/py_engine/adapter/haas510/
A Dmodutime.c48 seconds = tv.tv_sec; in time_localtime()
86 return mp_obj_new_int(tv.tv_sec); in time_time()
/AliOS-Things-master/components/py_engine/adapter/haas600/
A Dmodutime.c48 seconds = tv.tv_sec; in time_localtime()
86 return mp_obj_new_int(tv.tv_sec); in time_time()
/AliOS-Things-master/components/linksdk/portfiles/aiot_port/
A Daos_port.c152 return (time.tv_sec * 1000 + time.tv_usec / 1000); in core_sysdep_time()
314 timeselect.tv_sec = timeout_ms / 1000; in _core_sysdep_network_connect()
705 timestart_ms = timestart.tv_sec * 1000 + timestart.tv_usec / 1000; in _core_sysdep_network_tcp_recv()
710 timenow_ms = timenow.tv_sec * 1000 + timenow.tv_usec / 1000; in _core_sysdep_network_tcp_recv()
718 timeselect.tv_sec = timeselect_ms / 1000; in _core_sysdep_network_tcp_recv()
899 timestart_ms = timestart.tv_sec * 1000 + timestart.tv_usec / 1000; in _core_sysdep_network_tcp_send()
904 timenow_ms = timenow.tv_sec * 1000 + timenow.tv_usec / 1000; in _core_sysdep_network_tcp_send()
912 timeselect.tv_sec = timeselect_ms / 1000; in _core_sysdep_network_tcp_send()
1004 timeout.tv_sec = timeout_ms / 1000; in _core_sysdep_network_mbedtls_send()
1009 timestart_ms = timestart.tv_sec * 1000 + timestart.tv_usec / 1000; in _core_sysdep_network_mbedtls_send()
[all …]
/AliOS-Things-master/components/websocket/src/
A Drws_thread.c194 abs_timeout.tv_sec = tv.tv_sec + timeout_ms / 1000; in rws_sem_wait()

Completed in 30 milliseconds

1234