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):
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)
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)