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!


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:

You might look at this: