def stop(self): """Record the time when the program is paused.""" BaseProgram.stop(self) self.pause_time = time.time()