Home
last modified time | relevance | path

Searched refs:time_now (Results 1 – 6 of 6) sorted by relevance

/AliOS-Things-master/components/posix/src/
A Dtimer.c58 struct timespec time_now; in timespec_abs_to_relate() local
60 memset(&time_now, 0, sizeof(time_now)); in timespec_abs_to_relate()
62 ret = clock_gettime(CLOCK_MONOTONIC, &time_now); in timespec_abs_to_relate()
67 ns = timespec_to_nanosecond(time_abs) - timespec_to_nanosecond(&time_now); in timespec_abs_to_relate()
A Dpthread.c252 struct timeval time_now = {0}; in pthread_timedjoin_np() local
275 gettimeofday(&time_now, NULL); in pthread_timedjoin_np()
277 if ((time_now.tv_usec * 1000) > abstime->tv_nsec) { in pthread_timedjoin_np()
278 nsec = abstime->tv_nsec + 1000000000 - time_now.tv_usec * 1000; in pthread_timedjoin_np()
279 sec = abstime->tv_sec - time_now.tv_sec - 1; in pthread_timedjoin_np()
281 nsec = abstime->tv_nsec - time_now.tv_usec * 1000; in pthread_timedjoin_np()
282 sec = abstime->tv_sec - time_now.tv_sec; in pthread_timedjoin_np()
/AliOS-Things-master/components/linkkit/dev_model/alcs/
A Dalcs_adapter.c456 uint64_t time_now = HAL_UptimeMs(); in iotx_alcs_subdev_stage_check() local
463 if (((time_now > node->retry_ms) && in iotx_alcs_subdev_stage_check()
464 (time_now - node->retry_ms >= in iotx_alcs_subdev_stage_check()
466 ((time_now <= node->retry_ms) && in iotx_alcs_subdev_stage_check()
467 ((0xFFFFFFFFFFFFFFFF - node->retry_ms) + time_now >= in iotx_alcs_subdev_stage_check()
472 node->retry_ms = time_now; in iotx_alcs_subdev_stage_check()
/AliOS-Things-master/components/ble_host/ble_profiles/
A Duart_client.c208 long long time_now = 0; in found_dev_get() local
215 time_now = aos_now_ms(); in found_dev_get()
216 survive_time = time_now - dev->time_found; in found_dev_get()
/AliOS-Things-master/components/uvoice/connect/
A Duvoice_ws.c413 long long time_now; in __nopoll_conn_ping_test() local
423 time_now = os_current_time(); in __nopoll_conn_ping_test()
424 time_now /= 1000; in __nopoll_conn_ping_test()
428 if (time_now <= (time_active + NOPOLL_PING_PERIOD_SEC)) in __nopoll_conn_ping_test()
/AliOS-Things-master/components/linksdk/core/
A Daiot_mqtt_api.c1578 uint64_t time_now = 0; in _core_mqtt_repub() local
1583 time_now = mqtt_handle->sysdep->core_sysdep_time(); in _core_mqtt_repub()
1584 if (time_now < node->last_send_time) { in _core_mqtt_repub()
1585 node->last_send_time = time_now; in _core_mqtt_repub()
1720 uint64_t time_now = 0; in _core_mqtt_reconnect() local
1731 time_now = mqtt_handle->sysdep->core_sysdep_time(); in _core_mqtt_reconnect()
1733 mqtt_handle->reconnect_params.last_retry_time = time_now; in _core_mqtt_reconnect()
1736 mqtt_handle->reconnect_params.last_retry_time = time_now; in _core_mqtt_reconnect()
2791 uint64_t time_now = 0; in aiot_mqtt_process() local
2804 time_now = mqtt_handle->sysdep->core_sysdep_time(); in aiot_mqtt_process()
[all …]

Completed in 20 milliseconds