qb_loop_timer_expire_time_remaining - Man Page

Get the time remaining before the timer expires.

Synopsis

#include <qb/qbloop.h>

uint64_t qb_loop_timer_expire_time_remaining(
    struct qb_loop       *l,   /* pointer to the loop instance */
    qb_loop_timer_handle  th   /* timer handle. */
);

Params

l  pointer to the loop instance

th timer handle.

Description

Return Value

nano seconds remaining until the timer expires

Note

if the timer has already expired it will return 0

See Also

qb_loop_job_del(3), qb_loop_run(3), qb_loop_create(3), qb_loop_stop(3), qb_loop_poll_low_fds_event_set(3), qb_loop_signal_del(3), qb_loop_signal_add(3), qb_loop_job_add(3), qb_loop_poll_del(3), qb_loop_destroy(3), qb_loop_poll_mod(3), qb_loop_signal_mod(3), qb_loop_timer_del(3), qb_loop_timer_add(3), qb_loop_timer_is_running(3), qb_loop_timer_expire_time_get(3), qb_loop_poll_add(3)

Referenced By

qb_loop_create(3), qb_loop_destroy(3), qbloop.h(3), qb_loop_job_add(3), qb_loop_job_del(3), qb_loop_poll_add(3), qb_loop_poll_del(3), qb_loop_poll_low_fds_event_set(3), qb_loop_poll_mod(3), qb_loop_run(3), qb_loop_signal_add(3), qb_loop_signal_del(3), qb_loop_signal_mod(3), qb_loop_stop(3), qb_loop_timer_add(3), qb_loop_timer_del(3), qb_loop_timer_expire_time_get(3), qb_loop_timer_is_running(3).

2023-07-21 libqb Programmer's Manual