#ifndef BABELTRACE2_UTIL_H
#define BABELTRACE2_UTIL_H
+/* IWYU pragma: private, include <babeltrace2/babeltrace.h> */
+
#ifndef __BT_IN_BABELTRACE_H
# error "Please include <babeltrace2/babeltrace.h> instead."
#endif
\bt_p{offset_seconds} can be negative. For example, considering:
- A 1000 Hz clock.
-- \bt_p{offset_seconds} set to -10 seconds.
+- \bt_p{offset_seconds} set to −10 seconds.
- \bt_p{offset_cycles} set to 500 cycles
(that is, 0.5 seconds).
- \bt_p{cycles} set to 2000 cycles (that is, 2 seconds).
-The computed value is -7.5 seconds, so this function sets
-\bt_p{*ns_from_origin} to -7,500,000,000.
+The computed value is −7.5 seconds, so this function sets
+\bt_p{*ns_from_origin} to −7,500,000,000.
This function can fail and return the
#BT_UTIL_CLOCK_CYCLES_TO_NS_FROM_ORIGIN_STATUS_OVERFLOW_ERROR status
bt_util_clock_cycles_to_ns_from_origin_status
bt_util_clock_cycles_to_ns_from_origin(uint64_t cycles,
uint64_t frequency, int64_t offset_seconds,
- uint64_t offset_cycles, int64_t *ns_from_origin);
+ uint64_t offset_cycles, int64_t *ns_from_origin) __BT_NOEXCEPT;
/*! @} */