Use a couple of modulated infrared LEDs as light sources and two
infrared receivers to catch the beams. Use an RS flip-flop as an
enable for a counter and use the output of the first IR receiver to
SET the flip-flop and the output of the second to RESET it. Manually
RESET the flip-flop and CLEAR the counter at the beginning of a speed
run, then when the car goes through the first gate it\'ll turn on the
counter which will accumulate clocks until the car goes through the
second gate, when it will stop accumulating clocks. Display the
contents of the counter on seven-segment LED or LCD digits, and you\'ll
have all the information you need to determine how fast the car was
going. If you wanted to, you could choose a particular clock
frequency for the counter and space the gates to have the display read
out directly in units of speed.
What kind of speed and accuracy do you need, and do you want a
schematic?