def throttle_delay(self):
        """
        Return the number of milliseconds to wait until connection is no longer throttled.
        """
        if self._throttle_time is not None:
            remaining_ms = (self._throttle_time - time.time()) * 1000
            if remaining_ms > 0:
                return remaining_ms
            else:
                self._throttle_time = None
                return 0
        return 0

        Return the number of milliseconds to wait until connection is no longer throttled.
        
kafka/conn.py