Counting seconds and moving

Hi! I have a little problem moving my object in the scene. The idea is to move the object when the user presses ‘S’ (from ‘start’) on the keyboard. So, when ‘S’ is pressed, my object should move from the start to the end point in exactly 15 seconds. I tried some things, like using C’s time.h library, but I didn’t achieve much :frowning:

Does anyone know how to move an object a specific number of seconds?

Thanks a lot!

Darie

Can you turn off vsinc and go by framerate?
Just how exact are we talking here? :slight_smile:

I use RDTSC but for games but I’m told it’s like predicting ice-ages with a stop-watch.

Interesting timing components:

http://developer.nvidia.com/object/timer_function_performance.html

http://www.opengl.org/registry/specs/EXT/timer_query.txt

You might look at this:
http://softwarecommunity.intel.com/articles/eng/2589.htm