qb_util_stopwatch_time_split_get - Man Page

Read the time split (in us) from "receint" to "older".

Synopsis

#include <qb/qbutil.h>

uint64_t qb_util_stopwatch_time_split_get(
    qb_util_stopwatch_t   *sw,       /* the stopwatch */
    uint32_t               receint,  /* split */
    uint32_t               older     /* split */
);

Params

sw      the stopwatch

receint split

older   split

Description

If older == receint then the cumulated split will be returned (from the stopwatch start).

Return Value

the        split time in micro seconds

0          if not a valid split

See Also

qb_util_nano_current_get(3), qb_util_stopwatch_stop(3), qb_util_stopwatch_split(3), qb_util_stopwatch_split_ctl(3), qb_thread_unlock(3), qb_strerror_r(3), qb_util_set_log_function(3), qb_util_timespec_from_epoch_get(3), qb_thread_lock_destroy(3), qb_thread_trylock(3), qb_util_nano_monotonic_hz(3), qb_util_nano_from_epoch_get(3), qb_util_stopwatch_create(3), qb_util_stopwatch_split_last(3), qb_thread_lock(3), qb_util_stopwatch_free(3), qb_thread_lock_create(3), qb_timespec_add_ms(3), qb_util_stopwatch_start(3), qb_util_stopwatch_us_elapsed_get(3), qb_util_stopwatch_sec_elapsed_get(3)

Referenced By

qb_strerror_r(3), qb_thread_lock(3), qb_thread_lock_create(3), qb_thread_lock_destroy(3), qb_thread_trylock(3), qb_thread_unlock(3), qb_timespec_add_ms(3), qbutil.h(3), qb_util_nano_current_get(3), qb_util_nano_from_epoch_get(3), qb_util_nano_monotonic_hz(3), qb_util_set_log_function(3), qb_util_stopwatch_create(3), qb_util_stopwatch_free(3), qb_util_stopwatch_sec_elapsed_get(3), qb_util_stopwatch_split(3), qb_util_stopwatch_split_ctl(3), qb_util_stopwatch_split_last(3), qb_util_stopwatch_start(3), qb_util_stopwatch_stop(3), qb_util_stopwatch_us_elapsed_get(3), qb_util_timespec_from_epoch_get(3).

2023-07-21 libqb Programmer's Manual