• Matty_r@programming.dev
    link
    fedilink
    arrow-up
    13
    ·
    5 months ago

    This should be the new isEven()/isOdd(). Calculate the speed of the CPU and use that to determine how long it might take to achieve a ‘sleep’ of a required time.

    • henfredemars@infosec.pub
      link
      fedilink
      English
      arrow-up
      12
      ·
      5 months ago

      I took an embedded hardware class where specifically we were required to manually calculate our sleeps or use interrupts and timers rather than using a library function to do it for us.