297
297
def throttle(self, old_msg):
298
298
"""Return True if the bar was updated too recently"""
299
299
# time.time consistently takes 40/4000 ms = 0.01 ms.
305
302
if self.start_time is not None and (now - self.start_time) < 1:
307
304
if old_msg != self.last_msg: