A simple stopwatch class.