In order to keep track of the amount of time each racer takes to reach the finish line, we need to create new variables. This can be done in the orange "variables" section. Click the "Make a Variable" button and name your variables "Racer 1 Time" and "Racer 2 Time".
You want your timer variables to go up as time passes, so we need to add to them. You can find this block in the orange "variables" section. You need to change the variable in that block to the timer variable for each racer. To add another layer of precision, you want to go up by 0.1 seconds at a time.
You want to stop adding to each racer's time once they reach the finish line, so use a "touching mouse-pointer" in the "sensing" section. You need to change "mouse-pointer" in the sensing block to "finish line".
You only want to add 0.1 to your time every 0.1 seconds, to do this add a "wait 0.1 seconds" block from the "control" section inside your "repeat until" loop.