X-Git-Url: https://git.efficios.com/?a=blobdiff_plain;f=bindings%2Fpython%2Fbt2%2Fbt2%2Fclock_snapshot.py;h=4be39e8024f652b844741908d7e70998d0146c78;hb=2ae9f48c88d9359f2b2bf1cbac3c6dab5a22cfbb;hp=fdd66a896f257c323bca04252610cf8e8ef37073;hpb=36d1acad60fd6c9cfb933f3f2fbc039443d47115;p=babeltrace.git diff --git a/bindings/python/bt2/bt2/clock_snapshot.py b/bindings/python/bt2/bt2/clock_snapshot.py index fdd66a89..4be39e80 100644 --- a/bindings/python/bt2/bt2/clock_snapshot.py +++ b/bindings/python/bt2/bt2/clock_snapshot.py @@ -48,10 +48,8 @@ class _ClockSnapshot(object._UniqueObject): return bt2.ClockClass._create_from_ptr(ptr) @property - def cycles(self): - ret, cycles = native_bt.clock_snapshot_get_value(self._ptr) - assert(ret == 0) - return cycles + def value(self): + return native_bt.clock_snapshot_get_value(self._ptr) @property def ns_from_epoch(self):