zephyr::raw

Function k_timer_remaining_ticks

source
pub unsafe extern "C" fn k_timer_remaining_ticks(
    timer: *const k_timer,
) -> i64
Expand description

@brief Get time remaining before a timer next expires, in system ticks

This routine computes the time remaining before a running timer next expires, in units of system ticks. If the timer is not running, it returns zero.

@param timer The timer object @return Remaining time until expiration, in ticks