Do you mean for a game loop? If so, I think the best is to define the FPS you need, time the work done in inside the loop, and sleep the amount of time you are not using in the frame.

OTOH, I have found that Sleep( 8 ) works ok on Windows, in several machines.