JPDev to Programmer Humor · 11 months agoSleep() at homeimagemessage-square32fedilinkarrow-up1613arrow-down116
arrow-up1597arrow-down1imageSleep() at homeJPDev to Programmer Humor · 11 months agomessage-square32fedilink
minus-squarekevincox@lemmy.mllinkfedilinkarrow-up11·11 months agoI’ve written these cycle-perfect sleep loops before. It gets really complicated if you want to account for time spent in interrupt handlers.
minus-squareaksdb@lemmy.worldlinkfedilinkarrow-up2·11 months agoThankfully I didn’t need high precision realtime. I just needed to wait a few seconds for serial comm.
I’ve written these cycle-perfect sleep loops before.
It gets really complicated if you want to account for time spent in interrupt handlers.
Thankfully I didn’t need high precision realtime. I just needed to wait a few seconds for serial comm.