Serial.write() blocking when transmit buffer fills on AVR Arduino
Goal Identify a reliable way to measure execution time of a tight loop on an AVR-based Arduino (Uno, Nano) without the measurement itself perturbing the result. Constraints and uncertainty On AVR cores, HardwareSerial.write() and print() block once the 64-byte software TX buffer is full, so any Serial.print() -based timing inside the loop inflates the measur