title: Is there an alternative for sleep() in C?
body: <p>In traditional embedded programming, we will give a delay function like so:</p>
  
  <pre><code>for(i=0;i&lt;255;i++)
     for(j=0;j&lt;255;j++);
  </code></pre>
  
  <p>In the microprocessor's view, is this how the sleep() function works?</p>
  
  <p>Is there an alternative for the sleep() function in C?</p>