The way I do it is:
startTime = timer()
frameTime# = 1.0
do
frameTime# = (frameTime# * 0.8) + ((timer() - startTime) * 0.2)
startTime = timer()
loop
This produces a weighted average from the Frame Time. This is usefull for timer based movement... Bearing in mind the frameTime# is in milliseconds, you can do the following:
move object 1, Speed# * frameTime# * 0.001
That would move obejct 1 at
speed# per second. The
* 0.001 is to make sure it moves at
speed# per second instead of
speed# per millisecond.
You can also do the following:
turn object left 1, frameTime# * 0.180
That'll turn your object at
180 degrees per second. Obviously, a
* 0.360 will do 360 degrees per second and
* 0.090 would do 90 degrees per second. VERY usefull!
The main advantage of this method is it works on ANY speed PC. If yours is doign 500fps, mine is doing 800fps and Joe Blogg's PC is doing 20fps, the actual movement will automatically adjust so its always 180 degree's per second, it'll just look smoother on ours
Also - at all the others shouting at him for this. I think there are about 12 posts here that dont answer the question. He is CLEARLY trying to learn and I HATE it when people spend their time making a big post having a go when they could simply either answer his question OR just go to a different thread.. Lemme guess, you're the kinda people that write into Points of View about how terrible a program was when the forced themselves to watch it instead of using the admin power of the
remote control 
(JOKE).
Seriously guys - how would you like it if you posted for
help and Gil posted back having a go?
What does it matter if he has a few thread open? If you dont wanna help - just dont bother! Leave it to those who'd rather make this a nice helpfull community rather than making all the new programmers feel like crap for asking for help.
Dont get me wrong - It would be nice if peope used the edit button and made appropriate titles for their posts and stuff and I have a go at them for that, but at least I try to provide some help too (Kinda like Ric did above, nicely posted

)
That my rant + help overwith.. Gil, if you need any more help with that snippet, either post back here or email me.