def _sleep(self):
        # Make sure that the application is not shutting down before sleeping
        if self.is_stopping:
            LOGGER.debug('Not sleeping, application is trying to shutdown')
            return

        # Set the signal timer
        signal.setitimer(signal.ITIMER_REAL, self.wake_interval, 0)

        # Toggle that we are running
        self.set_state(self.STATE_SLEEPING)
Setup the next alarm to fire and then wait for it to fire.
dataset/ETHPy150Open gmr/helper/helper/controller.py/Controller._sleep