code: def post_message(self, msg):
          '''add timestamp to message'''
          # read the timestamp
          super(mavlogfile, self).post_message(msg)
          if self.planner_format:
              self.f.read(1) # trailing newline
          self.timestamp = msg._timestamp
          self._last_message = msg
          if msg.get_type() != "BAD_DATA":
              self._last_timestamp = msg._timestamp
          msg._link = self._linf post_message(self, msg):
          '''add timestamp to message'''
          # read the timestamp
          super(mavlogfile, self).post_message(msg)
          if self.planner_format:
              self.f.read(1) # trailing newline
          self.timestamp = msg._timestamp
          self._last_message = msg
          if msg.get_type() != "BAD_DATA":
              self._last_timestamp = msg._timestamp
          msg._link = self._link
docs: add timestamp to message