Arduino uno - calculating and outputting a time for each loop to execute?

Record the start time before the first part of the code you want to time, and record the end time after the last part of the code you want to time.

You don't time a race by firing the gun, starting the stopwatch and then immediately stopping the stopwatch.