Home
last modified time | relevance | path

Searched refs:timenow_ms (Results 1 – 8 of 8) sorted by relevance

/AliOS-Things-master/components/amp_adapter/platform/aos/network/
A Daos_tcp.c196 uint64_t timestart_ms = 0, timenow_ms = 0, timeselect_ms = 0; in aos_tcp_read() local
206 timenow_ms = timestart_ms; in aos_tcp_read()
210 timenow_ms = timenow.tv_sec * 1000 + timenow.tv_usec / 1000; in aos_tcp_read()
212 if (timenow_ms - timestart_ms >= timenow_ms || in aos_tcp_read()
213 timeout_ms - (timenow_ms - timestart_ms) > timeout_ms) { in aos_tcp_read()
217 timeselect_ms = timeout_ms - (timenow_ms - timestart_ms); in aos_tcp_read()
247 } while (((timenow_ms - timestart_ms) < timeout_ms) && (recv_bytes < len)); in aos_tcp_read()
/AliOS-Things-master/components/linksdk/components/diag/
A Daiot_diag_api.c189 uint64_t timenow_ms = core_log_get_timestamp(diag_handle->sysdep); in _diag_core_mqtt_process_handler() local
205 if (diag_handle->mqtt_process.last_check_time > timenow_ms) { in _diag_core_mqtt_process_handler()
206 diag_handle->mqtt_process.last_check_time = timenow_ms; in _diag_core_mqtt_process_handler()
224 if (node->start_time > timenow_ms) { in _diag_core_mqtt_process_handler()
225 node->start_time = timenow_ms; in _diag_core_mqtt_process_handler()
269 diag_handle->mqtt_process.last_check_time = timenow_ms; in _diag_core_mqtt_process_handler()
301 uint64_t timenow_ms = core_log_get_timestamp(diag_handle->sysdep); in _diag_mqtt_conn_report_desc_append() local
314 uint64_t time_elapsed = timenow_ms - running_state->report_start_time; in _diag_mqtt_conn_report_desc_append()
338 uint64_t timenow_ms = core_log_get_timestamp(diag_handle->sysdep); in _diag_mqtt_hb_report_desc_append() local
351 uint64_t time_elapsed = timenow_ms - running_state->report_start_time; in _diag_mqtt_hb_report_desc_append()
[all …]
/AliOS-Things-master/components/linksdk/portfiles/aiot_port/
A Daos_port.c696 uint64_t timestart_ms = 0, timenow_ms = 0, timeselect_ms = 0; in _core_sysdep_network_tcp_recv() local
706 timenow_ms = timestart_ms; in _core_sysdep_network_tcp_recv()
712 if (timenow_ms - timestart_ms >= timenow_ms || in _core_sysdep_network_tcp_recv()
717 timeselect_ms = timeout_ms - (timenow_ms - timestart_ms); in _core_sysdep_network_tcp_recv()
890 uint64_t timestart_ms = 0, timenow_ms = 0, timeselect_ms = 0; in _core_sysdep_network_tcp_send() local
900 timenow_ms = timestart_ms; in _core_sysdep_network_tcp_send()
906 if (timenow_ms - timestart_ms >= timenow_ms || in _core_sysdep_network_tcp_send()
911 timeselect_ms = timeout_ms - (timenow_ms - timestart_ms); in _core_sysdep_network_tcp_send()
1000 uint64_t timestart_ms = 0, timenow_ms = 0; in _core_sysdep_network_mbedtls_send() local
1010 timenow_ms = timestart_ms; in _core_sysdep_network_mbedtls_send()
[all …]
/AliOS-Things-master/components/linksdk/core/
A Daiot_http_api.c172 uint64_t timenow_ms = http_handle->sysdep->core_sysdep_time(); in _core_http_recv_auth() local
175 if (timenow_ms >= http_handle->sysdep->core_sysdep_time()) { in _core_http_recv_auth()
176 timenow_ms = http_handle->sysdep->core_sysdep_time(); in _core_http_recv_auth()
178 if (http_handle->sysdep->core_sysdep_time() - timenow_ms >= http_handle->auth_timeout_ms) { in _core_http_recv_auth()
458 uint64_t timenow_ms = 0; in aiot_http_recv() local
479 timenow_ms = http_handle->sysdep->core_sysdep_time(); in aiot_http_recv()
481 if (timenow_ms >= http_handle->sysdep->core_sysdep_time()) { in aiot_http_recv()
482 timenow_ms = http_handle->sysdep->core_sysdep_time(); in aiot_http_recv()
484 if (http_handle->sysdep->core_sysdep_time() - timenow_ms >= http_handle->recv_timeout_ms) { in aiot_http_recv()
/AliOS-Things-master/components/linksdk/components/dynreg-mqtt/
A Daiot_dynregmq_api.c445 uint64_t timenow_ms = 0; in aiot_dynregmq_recv() local
463 timenow_ms = dynregmq_handle->sysdep->core_sysdep_time(); in aiot_dynregmq_recv()
465 if (timenow_ms >= dynregmq_handle->sysdep->core_sysdep_time()) { in aiot_dynregmq_recv()
466 timenow_ms = dynregmq_handle->sysdep->core_sysdep_time(); in aiot_dynregmq_recv()
468 … if (dynregmq_handle->sysdep->core_sysdep_time() - timenow_ms >= dynregmq_handle->timeout_ms) { in aiot_dynregmq_recv()
/AliOS-Things-master/components/linksdk/components/dynreg/
A Daiot_dynreg_api.c443 uint64_t timenow_ms = 0; in aiot_dynreg_recv() local
463 timenow_ms = dynreg_handle->sysdep->core_sysdep_time(); in aiot_dynreg_recv()
465 if (timenow_ms >= dynreg_handle->sysdep->core_sysdep_time()) { in aiot_dynreg_recv()
466 timenow_ms = dynreg_handle->sysdep->core_sysdep_time(); in aiot_dynreg_recv()
468 if (dynreg_handle->sysdep->core_sysdep_time() - timenow_ms >= dynreg_handle->timeout_ms) { in aiot_dynreg_recv()
/AliOS-Things-master/components/linksdk/core/utils/
A Dcore_http.c437 uint64_t timenow_ms = 0; in _core_http_recv_header() local
445 timenow_ms = http_handle->sysdep->core_sysdep_time(); in _core_http_recv_header()
447 if (timenow_ms > http_handle->sysdep->core_sysdep_time()) { in _core_http_recv_header()
448 timenow_ms = http_handle->sysdep->core_sysdep_time(); in _core_http_recv_header()
450 if (http_handle->sysdep->core_sysdep_time() - timenow_ms >= http_handle->recv_timeout_ms) { in _core_http_recv_header()
/AliOS-Things-master/components/linksdk/components/bootstrap/
A Daiot_bootstrap_api.c627 uint64_t timenow_ms = 0; in aiot_bootstrap_recv() local
648 timenow_ms = bootstrap_handle->sysdep->core_sysdep_time(); in aiot_bootstrap_recv()
650 if (timenow_ms >= bootstrap_handle->sysdep->core_sysdep_time()) { in aiot_bootstrap_recv()
651 timenow_ms = bootstrap_handle->sysdep->core_sysdep_time(); in aiot_bootstrap_recv()
653 … if (bootstrap_handle->sysdep->core_sysdep_time() - timenow_ms >= bootstrap_handle->timeout_ms) { in aiot_bootstrap_recv()

Completed in 25 milliseconds