Home
last modified time | relevance | path

Searched refs:now (Results 1 – 25 of 157) sorted by relevance

1234567

/hal_espressif-3.6.0/examples/protocols/sntp/main/
Dsntp_example_main.c54 time_t now; in app_main() local
56 time(&now); in app_main()
57 localtime_r(&now, &timeinfo); in app_main()
63 time(&now); in app_main()
82 time(&now); in app_main()
91 localtime_r(&now, &timeinfo); in app_main()
98 localtime_r(&now, &timeinfo); in app_main()
142 time_t now = 0; in obtain_time() local
150 time(&now); in obtain_time()
151 localtime_r(&now, &timeinfo); in obtain_time()
/hal_espressif-3.6.0/components/esp_pm/
Dpm_locks.c116 pm_time_t now = 0; in esp_pm_lock_acquire() local
118 now = pm_get_time(); in esp_pm_lock_acquire()
120 esp_pm_impl_switch_mode(handle->mode, MODE_LOCK, now); in esp_pm_lock_acquire()
122 handle->last_taken = now; in esp_pm_lock_acquire()
146 pm_time_t now = 0; in esp_pm_lock_release() local
148 now = pm_get_time(); in esp_pm_lock_release()
149 handle->time_held += now - handle->last_taken; in esp_pm_lock_release()
151 esp_pm_impl_switch_mode(handle->mode, MODE_UNLOCK, now); in esp_pm_lock_release()
Dpm_impl.c366 pm_mode_switch_t lock_or_unlock, pm_time_t now) in esp_pm_impl_switch_mode() argument
391 pm_time_t diff = now - s_last_mode_change_time; in esp_pm_impl_switch_mode()
394 s_last_mode_change_time = now; in esp_pm_impl_switch_mode()
633 int64_t now = esp_timer_get_time(); in vApplicationSleep() local
634 int64_t time_until_next_alarm = next_esp_timer_alarm - now; in vApplicationSleep()
685 pm_time_t now = pm_get_time(); in esp_pm_impl_dump_stats() local
688 time_in_mode[cur_mode] += now - last_mode_change_time; in esp_pm_impl_dump_stats()
702 (int) (time_in_mode[i] * 100 / now)); in esp_pm_impl_dump_stats()
/hal_espressif-3.6.0/components/newlib/test/
Dtest_time.c382 struct timeval now = {0}; in test_posix_timers_clock() local
383 now.tv_sec = 10L; in test_posix_timers_clock()
384 now.tv_usec = 100000L; in test_posix_timers_clock()
385 TEST_ASSERT(settimeofday(&now, NULL) == 0); in test_posix_timers_clock()
386 TEST_ASSERT(gettimeofday(&now, NULL) == 0); in test_posix_timers_clock()
395 TEST_ASSERT(now.tv_sec == ts.tv_sec); in test_posix_timers_clock()
396 TEST_ASSERT_INT_WITHIN(5000000L, ts.tv_nsec, now.tv_usec * 1000L); in test_posix_timers_clock()
401 TEST_ASSERT(gettimeofday(&now, NULL) == 0); in test_posix_timers_clock()
402 TEST_ASSERT_EQUAL(ts.tv_sec, now.tv_sec); in test_posix_timers_clock()
403 TEST_ASSERT_INT_WITHIN(5000L, ts.tv_nsec / 1000L, now.tv_usec); in test_posix_timers_clock()
[all …]
Dtest_newlib.c67 time_t now = 1464248488; variable
70 struct tm *tm_utc = gmtime(&now);
80 struct tm *tm_local = localtime(&now);
107 struct timeval now = { .tv_sec = t }; variable
108 settimeofday(&now, NULL);
/hal_espressif-3.6.0/components/mbedtls/port/
Desp_timing.c58 struct timeval now; in mbedtls_timing_get_timer() local
59 gettimeofday( &now, NULL ); in mbedtls_timing_get_timer()
60 delta = ( now.tv_sec - t->start.tv_sec ) * 1000ul in mbedtls_timing_get_timer()
61 + ( now.tv_usec - t->start.tv_usec ) / 1000; in mbedtls_timing_get_timer()
/hal_espressif-3.6.0/components/esp_serial_slave_link/
Dessl.c75 uint32_t now; in essl_send_packet() local
79 now = xTaskGetTickCount(); in essl_send_packet()
80 remain_wait_ms = pdTICKS_TO_MS(TIME_REMAIN(pre, now, timeout_ticks)); in essl_send_packet()
107 uint32_t now = 3; in essl_get_packet() local
115 now = xTaskGetTickCount(); in essl_get_packet()
116 wait_remain_ms = pdTICKS_TO_MS(TIME_REMAIN(pre, now, timeout_ticks)); in essl_get_packet()
134 now = xTaskGetTickCount(); in essl_get_packet()
135 wait_remain_ms = pdTICKS_TO_MS(TIME_REMAIN(pre, now, timeout_ticks)); in essl_get_packet()
/hal_espressif-3.6.0/components/pthread/test/
Dtest_cxx_cond_var.cpp20 auto now = std::chrono::system_clock::now(); in waits() local
22 if(cv.wait_until(lk, now + std::chrono::milliseconds(timeout_ms), [](){return i == 1;})) in waits()
75 auto deadline = SysClock::now() + timeout;
87 auto end = SysClock::now();
/hal_espressif-3.6.0/zephyr/esp32/src/wpa_supplicant/port/
Dos_xtensa.c37 int64_t now = k_uptime_ticks(); in os_get_time() local
38 t->sec = now / CONFIG_SYS_CLOCK_TICKS_PER_SEC; in os_get_time()
39 t->usec = k_ticks_to_us_floor64(now); in os_get_time()
/hal_espressif-3.6.0/zephyr/esp32c3/src/wpa_supplicant/port/
Dos_riscv.c39 int64_t now = k_uptime_ticks(); in os_get_time() local
40 t->sec = now / CONFIG_SYS_CLOCK_TICKS_PER_SEC; in os_get_time()
41 t->usec = k_ticks_to_us_floor64(now); in os_get_time()
/hal_espressif-3.6.0/zephyr/esp32s2/src/wpa_supplicant/port/
Dos_xtensa.c37 int64_t now = k_uptime_ticks(); in os_get_time() local
38 t->sec = now / CONFIG_SYS_CLOCK_TICKS_PER_SEC; in os_get_time()
39 t->usec = k_ticks_to_us_floor64(now); in os_get_time()
/hal_espressif-3.6.0/zephyr/esp32s3/src/wpa_supplicant/port/
Dos_xtensa.c37 int64_t now = k_uptime_ticks(); in os_get_time() local
38 t->sec = now / CONFIG_SYS_CLOCK_TICKS_PER_SEC; in os_get_time()
39 t->usec = k_ticks_to_us_floor64(now); in os_get_time()
/hal_espressif-3.6.0/components/bt/esp_ble_mesh/mesh_models/server/
Dserver_common.c200 uint8_t tid, uint16_t src, uint16_t dst, int64_t *now) in bt_mesh_is_server_recv_last_msg() argument
202 *now = k_uptime_get(); in bt_mesh_is_server_recv_last_msg()
210 (*now - last->timestamp <= K_SECONDS(6))) { in bt_mesh_is_server_recv_last_msg()
218 uint8_t tid, uint16_t src, uint16_t dst, int64_t *now) in bt_mesh_server_update_last_msg() argument
228 last->timestamp = *now; in bt_mesh_server_update_last_msg()
/hal_espressif-3.6.0/components/driver/test/
Dtest_adc2_with_wifi.c58 #define TIME_REMAIN(start, now, timeout) ((start) >= (now) ? MINUS_UNTIL_ZERO((timeout), (now)-(sta… argument
179 int32_t now; variable
184 now = xTaskGetTickCount();
185 remain_wait_ms = pdTICKS_TO_MS(TIME_REMAIN(start, now, timeout));
/hal_espressif-3.6.0/components/wpa_supplicant/src/utils/
Dcommon.c88 struct os_time now; in wpa_get_ntp_timestamp() local
93 os_get_time(&now); in wpa_get_ntp_timestamp()
94 sec = now.sec + 2208988800U; /* Epoch to 1900 */ in wpa_get_ntp_timestamp()
96 usec = now.usec; in wpa_get_ntp_timestamp()
497 static inline int os_reltime_expired(struct os_time *now, in os_reltime_expired() argument
503 os_time_sub(now, ts, &age); in os_reltime_expired()
508 int os_time_expired(struct os_time *now, in os_time_expired() argument
512 return os_reltime_expired(now, ts, timeout_secs); in os_time_expired()
/hal_espressif-3.6.0/components/bootloader_support/src/
Dbootloader_random.c32 uint32_t start, now; in bootloader_fill_random() local
49 now = cpu_hal_get_cycle_count(); in bootloader_fill_random()
50 } while (now - start < RNG_CPU_WAIT_CYCLE_NUM); in bootloader_fill_random()
/hal_espressif-3.6.0/zephyr/esp_shared/components/esp_pm/
Dpm_impl.c357 pm_mode_switch_t lock_or_unlock, pm_time_t now) in esp_pm_impl_switch_mode() argument
382 pm_time_t diff = now - s_last_mode_change_time; in esp_pm_impl_switch_mode()
385 s_last_mode_change_time = now; in esp_pm_impl_switch_mode()
614 int64_t now = esp_timer_get_time(); in vApplicationSleep() local
615 int64_t time_until_next_alarm = next_esp_timer_alarm - now; in vApplicationSleep()
666 pm_time_t now = pm_get_time(); in esp_pm_impl_dump_stats() local
669 time_in_mode[cur_mode] += now - last_mode_change_time; in esp_pm_impl_dump_stats()
683 (int) (time_in_mode[i] * 100 / now)); in esp_pm_impl_dump_stats()
/hal_espressif-3.6.0/components/esp_timer/test/
Dtest_esp_timer.c126 int64_t now = start; in set_alarm_task() local
130 while (now - start < test_time_sec * 1000000) { in set_alarm_task()
131 now = esp_timer_impl_get_time(); in set_alarm_task()
132 esp_timer_impl_set_alarm(now + delays[count % delays_count]); in set_alarm_task()
316 int64_t now = ref_clock_get();
324 .t_start = now
333 .t_start = now
342 .t_start = now
932 int64_t now = esp_timer_get_time(); in timer_isr_callback() local
933 int64_t dt = now - old_time[num_timer]; in timer_isr_callback()
[all …]
/hal_espressif-3.6.0/components/freertos/
DHistory.txt76 ARMv8-M MPU ports now support a privilege access only heap. The ARMv7-M
77 MPU ports now support devices that have 16 MPU regions, have the ability
80 the Flash memory. The ARMv8-M MPU ports now support tickless idle mode.
86 + Code formatting is now automated to facilitate the increase in
88 to the original formatting conventions. Most notably spaces are now used
91 such as vApplicationStackOverflowHook()) are now in the FreeRTOS header
109 contained are now available as a separate download.
125 + The RISC-V machine timer compare register can now be for any HART, whereas
167 + The RISC-V port now automatically switches between 32-bit and 64-bit
176 + Cortex-M33 and Cortex-M23 ports now correctly disable the MPU before
[all …]
/hal_espressif-3.6.0/examples/bluetooth/esp_ble_mesh/ble_mesh_coex_test/components/case/
Drun_tc.c44 uint32_t now = utils_get_system_ts(); in wifi_tc_sta_throughput_timeout() local
48 if (now > last_timestamp) { in wifi_tc_sta_throughput_timeout()
49 uint32_t speed = report[1] * 8 / (now - last_timestamp); in wifi_tc_sta_throughput_timeout()
54 report[0] = now; in wifi_tc_sta_throughput_timeout()
/hal_espressif-3.6.0/examples/system/deep_sleep/main/
Ddeep_sleep_example_main.c101 struct timeval now; in app_main() local
102 gettimeofday(&now, NULL); in app_main()
103 …int sleep_time_ms = (now.tv_sec - sleep_enter_time.tv_sec) * 1000 + (now.tv_usec - sleep_enter_tim… in app_main()
/hal_espressif-3.6.0/components/wpa_supplicant/src/common/
Dwnm_sta.c351 struct os_reltime now; in compare_scan_neighbor_results() local
353 if (os_get_reltime(&now) == 0 && in compare_scan_neighbor_results()
354 os_time_expired(&now, &target->last_update, in compare_scan_neighbor_results()
536 struct os_reltime now; in wnm_add_cand_list() local
545 os_get_reltime(&now); in wnm_add_cand_list()
546 if (os_time_expired(&now, &wpa_s->last_scan, 10)) in wnm_add_cand_list()
1007 struct os_reltime now; in ieee802_11_rx_bss_trans_mgmt_req() local
1009 os_get_reltime(&now); in ieee802_11_rx_bss_trans_mgmt_req()
1010 if (!os_time_expired(&now, &wpa_s->last_scan, 10)) { in ieee802_11_rx_bss_trans_mgmt_req()
/hal_espressif-3.6.0/components/bt/esp_ble_mesh/mesh_models/server/include/
Dserver_common.h113 uint8_t tid, uint16_t src, uint16_t dst, int64_t *now);
116 uint8_t tid, uint16_t src, uint16_t dst, int64_t *now);
/hal_espressif-3.6.0/components/lwip/apps/ping/
Dping.c139 struct timeval now; in ping_recv() local
153 gettimeofday(&now, NULL); in ping_recv()
154 LWIP_DEBUGF( PING_DEBUG, (" %"U32_F" ms\n", PING_TIME_DIFF_MS(now, ping_time))); in ping_recv()
/hal_espressif-3.6.0/components/esp_timer/src/
Desp_timer.c338 int64_t now = esp_timer_impl_get_time(); in timer_process_alarm() local
339 if (it == NULL || it->alarm > now) { in timer_process_alarm()
350 int skipped = (now - it->alarm) / it->period; in timer_process_alarm()
352 it->alarm = now + it->period; in timer_process_alarm()
367 uint64_t callback_start = now; in timer_process_alarm()

1234567