def PtUpdateCGZStartTime(time=None): chron = PtFindCreateMarkerChronicle("CGZ-StartTime") if time is None: import Plasma time = Plasma.PtGetServerTime() chron.setValue(str(time)) chron.save()
def PtGetTimePlayingCGZ(): import Plasma return Plasma.PtGetServerTime() - PtGetCGZStartTime()