Added a generic stopwatch timer to keep track of passed time.