So, habs jetzt doch geschaft

Code:
     
while((PINC & (1<<PC3)))
     {
         if (TIFR & (1<<TOV1))
         {
             ergebnis = ergebnis + 255;
             TIFR = (1<<TOV1);
         }
     }
     ergebnis = ergebnis + TCNT1;
     TCCR1B &= ~(1<<CS11);           // Stoppe timer