def METHOD_NAME(self):
    while (self.gui.client == None):
        pass
    while (True):
        start_time = datetime.now()
        self.gui.update_gui()
        acknowledge_message = self.gui.get_acknowledge()
        while (acknowledge_message == False):
            acknowledge_message = self.gui.get_acknowledge()
        self.gui.set_acknowledge(False)
        finish_time = datetime.now()
        self.iteration_counter = self.iteration_counter + 1
        dt = finish_time - start_time
        ms = (dt.days * 24 * 60 * 60 + dt.seconds) * \
            1000 + dt.microseconds / 1000.0
        if (ms < self.ideal_cycle):
            time.sleep((self.ideal_cycle-ms) / 1000.0)