Add protocol for StopWatch class and Mock for tests.