Added a StopWatch class for a timer