title: Run two delays at once C++
body: <p>I want to make a program in which there are two dots blinking (with a break of 10ms) simultaneously, but one with delay 200ms and other with delay of 300ms. How can I play these two dots simultaneously from beginning? Is there a better way to that from following:</p>
  
  <pre><code>for(int i=1;i&lt;100;i++)
  {
    if (i%2==0)
      circle(10,10,2);
    if (i%3==0)
      circle(20,10,2);
    delay(10);
    cleardevice();
    delay(100);
  }
  </code></pre>