I deal with that problem by putting the timer code in the autonomous subroutine. Since it doesn't get called until auto_mode = 1, i time from the start of the autonomous period. The only assumption that I make is that the robot will be fully powered off between matches

.