stopwatch solution