bt2: update object model
[babeltrace.git] / bindings / python / bt2 / bt2 / clock_class.py
index 229121ed6f1462e37b239b29b2d231449cd295b9..41c9863f6267d24d91a65ae16e230930a565cc8e 100644 (file)
@@ -24,7 +24,8 @@ from bt2 import native_bt, object, utils
 import uuid as uuidp
 import numbers
 import bt2
-import bt2.clock_value as clock_value
+import bt2.clock_snapshot as clock_snapshot
+
 
 class ClockClassOffset:
     def __init__(self, seconds=0, cycles=0):
@@ -52,7 +53,7 @@ class ClockClassOffset:
         return (self.seconds, self.cycles) == (other.seconds, other.cycles)
 
 
-class ClockClass(object._Object):
+class ClockClass(object._SharedObject):
     def __init__(self, name, frequency, description=None, precision=None,
                  offset=None, is_absolute=None, uuid=None):
         utils._check_str(name)
@@ -219,5 +220,4 @@ class ClockClass(object._Object):
         utils._handle_ret(ret, "cannot set clock class object's UUID")
 
     def __call__(self, cycles):
-        return clock_value._ClockValue(self._ptr, cycles)
-
+        return clock_snapshot._ClockSnapshot(self._ptr, cycles)
This page took 0.023496 seconds and 4 git commands to generate.