pub unsafe extern "C" fn timer_get_counter_time_sec(
    group_num: timer_group_t,
    timer_num: timer_idx_t,
    time: *mut f64
) -> esp_err_t
Expand description

@brief Read the counter value of hardware timer, in unit of a given scale.

@param group_num Timer group, 0 for TIMERG0 or 1 for TIMERG1 @param timer_num Timer index, 0 for hw_timer[0] & 1 for hw_timer[1] @param time Pointer, type of double*, to accept timer counter value, in seconds.

@return - ESP_OK Success - ESP_ERR_INVALID_ARG Parameter error