• @kevincox@lemmy.ml
    link
    fedilink
    115 months ago

    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
      link
      fedilink
      25 months ago

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