title: C++ waiting a frame before carrying out an action
body: <p>How would you wait a frame in c++.</p>
  
  <p>I don't want the program to sleep or anything.</p>
  
  <p>It would go soemthing like</p>
  
  <p>Do this in this frame (1)</p>
  
  <p>Continue with rest of program</p>
  
  <p>Do this in the next frame (2)</p>
  
  <p>where action 1 happens only in the first frame and action 2 happens only in the next frame. It would continue like this. 1, 2, 1 again, 2</p>
  
  <p>I have the time between frames, I use c++ and i'm using Visual Studio 2008 to compile.</p>
  
  <p>Edit:</p>
  
  <p>I'm using Opengl my OS is Windows 7.</p>
  
  <p>Frame - <a href="http://en.wikipedia.org/wiki/Frame_rate" rel="nofollow">http://en.wikipedia.org/wiki/Frame_rate</a>
  like each image of the scene printed to the screen over a given time period</p>