Created a stopwatch class