in your game loop you add something like:
difference in time beween last loop and this loop
dt# = timer()-ct#
store current time in loop
ct# = timer()
calculates the loop time difference in seconds
ft# = dt# / 1000.0
the time factor 'ft#' should be a varying value at about 0.03 (+-0.01 depending on your computer) and you can use this value to multiply all moving objects in your game (both translational and rotational).
I would not advise using this for a racing game though... to make the factor 'ft#' more stable i normally declare an array, store the 'ft#' values in the array and take a mean once every loop, it stops the jerks you may experience once in a while.
it's better you understand whats going on so you can recreate this code for yourself rather than just copy+paste in your program.