Int value servo control and program flow

but this affects the frequency measurement

i think you're missing the point. noInterrupt/interrupt() are the proper way to temporarily disable interrupts around "critical sections"