def throttle(self):
    now = float(self.milliseconds())
    elapsed = (now - self.lastRestRequestTimestamp)
    if (elapsed < self.rateLimit):
        delay = (self.rateLimit - elapsed)
        time.sleep((delay / 1000.0))
def throttle(self):
    now = float(self.milliseconds())
    elapsed = (now - self.lastRestRequestTimestamp)
    if (elapsed < self.rateLimit):
        delay = (self.rateLimit - elapsed)
        time.sleep((delay / 1000.0))