Refactoring Stopwatch class