Efficient Alarm Clock FAQ
Questions
Are we allowed to manually disable and enable interrupts in timer sleep?
Yes. To be precise, interrupts must be on before and after the method call (“after” being before timer_sleep returns). It is not acceptable to turn off interrupts during timer_sleep and re-enable them at a later time after the function completes.