Refactored StopWatch.