this post was submitted on 24 Jan 2024
596 points (97.5% liked)

Programmer Humor

19544 readers
550 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] kevincox@lemmy.ml 11 points 9 months ago (1 children)

I've written these cycle-perfect sleep loops before.

It gets really complicated if you want to account for time spent in interrupt handlers.

[โ€“] aksdb@lemmy.world 2 points 9 months ago

Thankfully I didn't need high precision realtime. I just needed to wait a few seconds for serial comm.