1#ifndef BABELTRACE2_TRACE_IR_CLOCK_SNAPSHOT_H
2#define BABELTRACE2_TRACE_IR_CLOCK_SNAPSHOT_H
26#ifndef __BT_IN_BABELTRACE_H
27# error "Please include <babeltrace2/babeltrace.h> instead."
32#include <babeltrace2/types.h>
220 int64_t *ns_from_origin);
struct bt_clock_class bt_clock_class
Clock class.
Definition types.h:36
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:37
bt_clock_snapshot_get_ns_from_origin_status
Status codes for bt_clock_snapshot_get_ns_from_origin().
Definition clock-snapshot.h:150
@ BT_CLOCK_SNAPSHOT_GET_NS_FROM_ORIGIN_STATUS_OVERFLOW_ERROR
Integer overflow while computing the result.
Definition clock-snapshot.h:161
@ BT_CLOCK_SNAPSHOT_GET_NS_FROM_ORIGIN_STATUS_OK
Success.
Definition clock-snapshot.h:155