reading serial data with timeouts

thanks i used a variation of blink without delay, i still had to put a couple delay(1) in and will try to use they delaymicro in a revison, its been running for about 12 hours so far without a hitch

delay(10);
      byte seravcount = 0;
      byte lprtemp[200];
      byte datafound1 = 0;
      byte bytefound1 = 0;
      unsigned long currentMicros = micros();
      delay(1);
      while (micros() - currentMicros < 100000)
      {
        if (Serial.available() >0) 
        {
          datafound1 = 1;
          bytefound1 = 1;
          seravcount = seravcount +1;
          lprtemp[seravcount] = Serial.read();
          break;
        }
      }
      delay(1);
      while (bytefound1 == 1)
      {
        currentMicros = micros();
       
        while(micros() - currentMicros < 6000)
        {
          if (Serial.available() > 0) 
          {
            seravcount = seravcount +1;
            lprtemp[seravcount] = Serial.read();
            currentMicros = micros();
            delay(1);
            break;
          } 
          else
          {
            bytefound1 = 0;
          }
        }
      }