Implemented stopwatch.