setting FPS

I am writing a program that I want to run at the same speed on all machines that can handle it. I am guessing this probably lies in setting the frames per second, but I don’t know how to do that. Could someone post some code to show me how please?

Another solution is to use from the timer.As an example:
float elapsedTime;
float oldTime;
float currentTime;
currentTime = <CURRENT_TIME> //Use from the appropriate function
elapsedTime = currentTime - oldTime;
oldTime = currentTime;
<use from the elapsedTime in your program>
-Ehsan-

I’m not sure what you mean.

Doesn’t it solve your problem?
http://www.opengl.org/discussion_boards/cgi_directory/ultimatebb.cgi?ubb=get_topic;f=2;t=018648
-Ehsan-

I get it now, thanks.