(self, rate_limit_s)
:param rate_limit_s: rate limit in seconds
:param rate_limit_s: rate limit in seconds
: param rate_limit_s : rate limit in seconds
def __init__(self, rate_limit_s):
        """
        :param rate_limit_s: rate limit in seconds
        """
        self.rate_limit_s = max(rate_limit_s, 0)
        self.period_s = 1.0 / self.rate_limit_s if self.rate_limit_s > 0 else 0
        self.last_event = 0
def __init__ ( self , rate_limit_s ) : self . rate_limit_s = max ( rate_limit_s , 0 ) self . period_s = 1.0 / self . rate_limit_s if self . rate_limit_s > 0 else 0 self . last_event = 0