cpp-common/bt2: add missing ConstClockSnapshot::clockClass()
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Thu, 23 Nov 2023 05:45:49 +0000 (00:45 -0500)
committerSimon Marchi <simon.marchi@efficios.com>
Thu, 14 Dec 2023 15:57:04 +0000 (10:57 -0500)
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: Iea8665b8b284c236cbf20dda4fb34fe37137d168
Reviewed-on: https://review.lttng.org/c/babeltrace/+/11424
Reviewed-by: Simon Marchi <simon.marchi@efficios.com>
CI-Build: Simon Marchi <simon.marchi@efficios.com>
Tested-by: jenkins <jenkins@lttng.org>
src/cpp-common/bt2/clock-snapshot.hpp

index 190eb6a29d188c6a404203fd8fc76e286f7b2181..3b819ea74dda968c7cb294b540d4f10b788a25c7 100644 (file)
@@ -12,6 +12,7 @@
 #include <babeltrace2/babeltrace.h>
 
 #include "borrowed-object.hpp"
+#include "clock-class.hpp"
 #include "exc.hpp"
 
 namespace bt2 {
@@ -24,6 +25,11 @@ public:
     {
     }
 
+    ConstClockClass clockClass() const noexcept
+    {
+        return ConstClockClass {bt_clock_snapshot_borrow_clock_class_const(this->libObjPtr())};
+    }
+
     std::uint64_t value() const noexcept
     {
         return bt_clock_snapshot_get_value(this->libObjPtr());
This page took 0.024143 seconds and 4 git commands to generate.