/AliOS-Things-master/components/posix/src/ |
A D | time.c | 19 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 D | semaphore.c | 108 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 D | pthread_cond.c | 205 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 D | timer.c | 41 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 D | SDL_systimer.c | 120 …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 D | MQTTLinux.c | 30 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 D | aos_hal_timer.c | 53 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 D | SDL_syscond.c | 115 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 D | SDL_syssem.c | 139 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 D | HAL_TLS_itls.c | 131 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 D | time.h | 22 long tv_sec; /* seconds */ member 33 time_t tv_sec; /* seconds */ member
|
/AliOS-Things-master/components/libc_stub/compilers/iar/sys/ |
A D | time.h | 22 long tv_sec; /* seconds */ member 33 time_t tv_sec; /* seconds */ member
|
/AliOS-Things-master/components/amp_adapter/platform/linux/ |
A D | aos_system.c | 202 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 D | clock_gettime.c | 138 (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 D | SDL_systimer.c | 64 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 D | sntp.c | 162 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 D | stopwatch.h | 56 delta_sec = (double)watch->tv_sec - old_value.tv_sec; in StopwatchReadAndReset()
|
/AliOS-Things-master/components/amp_adapter/platform/aos/network/ |
A D | aos_tcp.c | 143 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 D | timing.c | 241 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 D | uvoice_linux.h | 112 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 D | modutime.c | 49 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 D | modutime.c | 48 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 D | modutime.c | 48 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 D | aos_port.c | 152 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 D | rws_thread.c | 194 abs_timeout.tv_sec = tv.tv_sec + timeout_ms / 1000; in rws_sem_wait()
|