Erst einmal danke für die Antworten.
Leider besteht das Problem trotz „Serial.flush()“ weiterhin.
volatile unsigned long T=0,last=0;
void setup () {
Serial.begin(9600);
pinMode(5,INPUT);
attachInterrupt(5,TMessen,RISING);
}
void loop ()
{
Serial.println(T);
Serial.flush();
}
void TMessen ()
{
unsigned long current = micros();
if (current>last)
{T=current-last;}
last=current;
}