def onTimerEvent(self):
            """Call back function to do tasks when Timer is tiggered.
                In this test class, only display some tracking on the timer's accuracy
            """
            time_error =  self.sidtimer.expected_time - self.sidtimer.time_now - self.sidtimer.interval
            if time_error > 0 and self.max_plus_error > time_error:
                self.max_plus_error = time_error
            elif time_error < 0 and time_error < self.max_minus_error:
                self.max_minus_error = time_error

            print("Idx", self.sidtimer.data_index, "now:", self.sidtimer.time_now, "expec_time:", self.sidtimer.expected_time - self.sidtimer.interval)
            print(" err:", time_error, "interv: %f" % (self.sidtimer.expected_time - self.sidtimer.time_now))
dataset/ETHPy150Open ericgibert/supersid/supersid/sidtimer.py/test_SidTimer_simple.onTimerEvent/swapped operands of `>`