7#ifndef BABELTRACE2_TRACE_IR_CLOCK_SNAPSHOT_H
8#define BABELTRACE2_TRACE_IR_CLOCK_SNAPSHOT_H
12#ifndef __BT_IN_BABELTRACE_H
13# error "Please include <babeltrace2/babeltrace.h> instead."
18#include <babeltrace2/types.h>
206 int64_t *ns_from_origin) __BT_NOEXCEPT;
struct bt_clock_class bt_clock_class
Clock class.
Definition types.h:22
uint64_t bt_clock_snapshot_get_value(const bt_clock_snapshot *clock_snapshot)
Returns the value, in clock cycles, of the clock snapshot clock_snapshot.
bt_clock_snapshot_get_ns_from_origin_status bt_clock_snapshot_get_ns_from_origin(const bt_clock_snapshot *clock_snapshot, int64_t *ns_from_origin)
Converts the value of the clock snapshot clock_snapshot from cycles to nanoseconds from the origin of...
const bt_clock_class * bt_clock_snapshot_borrow_clock_class_const(const bt_clock_snapshot *clock_snapshot)
Borrows the class of the clock of which clock_snapshot is a snapshot.
struct bt_clock_snapshot bt_clock_snapshot
Clock snapshot.
Definition types.h:23
bt_clock_snapshot_get_ns_from_origin_status
Status codes for bt_clock_snapshot_get_ns_from_origin().
Definition clock-snapshot.h:136
@ BT_CLOCK_SNAPSHOT_GET_NS_FROM_ORIGIN_STATUS_OVERFLOW_ERROR
Integer overflow while computing the result.
Definition clock-snapshot.h:147
@ BT_CLOCK_SNAPSHOT_GET_NS_FROM_ORIGIN_STATUS_OK
Success.
Definition clock-snapshot.h:141