fdutils/timer.py
def run_and_sleep(self, sleep_timeout, sleep_on_enter=False):
        """ utility method to use in while loops like while timer.run_and_sleep()
            it will introduce a sleep before continue with the loop"""
        if not self.started:
            self.start()

        if not self.has_expired:
            if sleep_on_enter or self._loop_started:
                time.sleep(sleep_timeout)
            else:
                self._loop_started = True
 utility method to use in while loops like while timer.run_and_sleep()
            it will introduce a sleep before continue with the loop
utility method to use in while loops like while timer.run_and_sleep()
it will introduce a sleep before continue with the loop
utility method to use in while loops like while timer . run_and_sleep () it will introduce a sleep before continue with the loop
def run_and_sleep(self, sleep_timeout, sleep_on_enter=False):
        if not self.started:
            self.start()
        if not self.has_expired:
            if sleep_on_enter or self._loop_started:
                time.sleep(sleep_timeout)
            else:
                self._loop_started = True
def run_and_sleep ( self , sleep_timeout , sleep_on_enter = False ) : if not self . started : self . start ( ) if not self . has_expired : if sleep_on_enter or self . _loop_started : time . sleep ( sleep_timeout ) else : self . _loop_started = True
utility method to use in while loops like while timer.run_and_sleep()
it will introduce a sleep before continue with the loop
utility method to use in while loops like while timer . run_and_sleep () it will introduce a sleep before continue with the loop
""" utility method to use in while loops like while timer.run_and_sleep()
            it will introduce a sleep before continue with the loop"""
self
sleep_timeout
sleep_on_enter