bt2: update object model
[babeltrace.git] / bindings / python / bt2 / bt2 / clock_class.py
index 6aed8928e57b162ef5b5d4b4a28933345da3c4ec..41c9863f6267d24d91a65ae16e230930a565cc8e 100644 (file)
@@ -24,7 +24,7 @@ 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:
@@ -53,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)
@@ -220,4 +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.023519 seconds and 4 git commands to generate.