well, it's quite tricky.
if u use 2 IR sensors amd u know the distance between them, it could work
the ideea is to use the seosors, conect them to a stopwatch(a digital one) to the start and stop buttons and have the time.
u can use the distance batween the sensors so that the watch will show the result in km/h or m/h
any way,
good luck