cpp-common/bt2: add missing ConstClockSnapshot::clockClass()
[babeltrace.git] / 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.025712 seconds and 4 git commands to generate.