update stopwatch to reduce code size