Print timestamps in text plug-in
[babeltrace.git] / include / babeltrace / ctf-ir / clock.h
index 03f335fb836719a015b02ae04bbd9a49f91570f1..d9e3eb06567b969d813cb16f60fac7f016a60f7d 100644 (file)
@@ -37,6 +37,7 @@ extern "C" {
 #endif
 
 struct bt_ctf_clock;
+struct bt_ctf_clock_value;
 
 /*
  * bt_ctf_clock_create: create a clock.
@@ -249,8 +250,14 @@ extern const unsigned char *bt_ctf_clock_get_uuid(struct bt_ctf_clock *clock);
 extern int bt_ctf_clock_set_uuid(struct bt_ctf_clock *clock,
                const unsigned char *uuid);
 
-extern int64_t bt_ctf_clock_ns_from_value(struct bt_ctf_clock *clock,
-               uint64_t value);
+extern struct bt_ctf_clock_value *bt_ctf_clock_value_create(
+               struct bt_ctf_clock *clock, uint64_t value);
+
+extern int bt_ctf_clock_value_get_value(
+               struct bt_ctf_clock_value *clock_value, uint64_t *raw_value);
+
+extern int bt_ctf_clock_value_get_value_ns_from_epoch(
+               struct bt_ctf_clock_value *clock_value, int64_t *value_ns);
 
 #ifdef __cplusplus
 }
This page took 0.025164 seconds and 4 git commands to generate.