Searched refs:time_now (Results 1 – 6 of 6) sorted by relevance
58 struct timespec time_now; in timespec_abs_to_relate() local60 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()
252 struct timeval time_now = {0}; in pthread_timedjoin_np() local275 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()
456 uint64_t time_now = HAL_UptimeMs(); in iotx_alcs_subdev_stage_check() local463 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()
208 long long time_now = 0; in found_dev_get() local215 time_now = aos_now_ms(); in found_dev_get()216 survive_time = time_now - dev->time_found; in found_dev_get()
413 long long time_now; in __nopoll_conn_ping_test() local423 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()
1578 uint64_t time_now = 0; in _core_mqtt_repub() local1583 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() local1731 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() local2804 time_now = mqtt_handle->sysdep->core_sysdep_time(); in aiot_mqtt_process()[all …]
Completed in 20 milliseconds