stopwatch and testCase implementation