4 ms·
I'd argue that, in this context, sleep() itself is buggy
by ddalex 8y ago
I'd argue that, in this context, sleep() itself is buggy
- kahlonel 8y agoThat was a no-OS situation. sleep() is usually implemented as a calculated number of cycles of `nop`s in those SDKs.
- brokenmachine 8y agoSleep is different to low-power mode in embedded devices. Most (all?) microcontrollers have a wide range of low-power modes that disable more and more features of the chip to save power. So if you only need it to do something say once every minute, you can usually save a lot of battery life by using the low-power modes.