Need some logic/syntax help!

Your reset inside of gapTimer():

    timerSwitchA = 0; // Resets 
    timerSwitchB = 0;

Happens inside of the for() loop. Did you mean for that?