Use MEASURE_LOOP_FREQUENCY macro for conditional compilation