code refactoring in Stopwatch.cs