Add stopwatch functionality