def timestamp(self):
        """
        :return: The timestamp in the TL specific unit.
        """
        timestamp = 0
        try:
            timestamp = self._buffer.timestamp_ns
        except (InvalidParameterException, NotImplementedException,
                NotAvailableException):
            try:
                _ = self.timestamp_frequency
            except InvalidParameterException:
                pass
            else:
                try:
                    timestamp = self._buffer.timestamp
                except (InvalidParameterException, NotAvailableException):
                    timestamp = 0

        return timestamp
def timestamp ( self ) : timestamp = 0 try : timestamp = self . _buffer . timestamp_ns except ( InvalidParameterException , NotImplementedException , NotAvailableException ) : try : _ = self . timestamp_frequency except InvalidParameterException : pass else : try : timestamp = self . _buffer . timestamp except ( InvalidParameterException , NotAvailableException ) : timestamp = 0 return timestamp
:return: The timestamp in the TL specific unit.