Refactored stopwatch code, remove isRunning function because it is unused.