(self, interval=None)
Reset the timer, i.e. clear the amount of time already waited
        for.
Reset the timer, i.e. clear the amount of time already waited
        for.
Reset the timer i . e . clear the amount of time already waited for .
def reset(self, interval=None):
        """
        Reset the timer, i.e. clear the amount of time already waited
        for.
        """

        if interval is not None and isinstance(interval, datetime):
            self.interval = mktime(interval.timetuple()) - time()
        elif interval is not None:
            self.interval = interval

        self.expiry = time() + self.interval
def reset ( self , interval = None ) : if interval is not None and isinstance ( interval , datetime ) : self . interval = mktime ( interval . timetuple ( ) ) - time ( ) elif interval is not None : self . interval = interval self . expiry = time ( ) + self . interval