title: I need something similar to sleep function for a program that uses OpenGL
body: <p>I'm writing a game (Othello) on C++ using OpenGL graphics, and I need something to "wait" or "sleep" the game after the user places a piece. The CPU plays too fast right after the user plays, so is not possible to see user's move. I tried with sleep function but it's not working. Basically, the idea is:</p>
  
  <p>Player inserts new piece
  ----sleep for 1 second----
  CPU inserts a new piece</p>
  
  <p>Is there any way to do this?</p>