serial reception for a prescribed amount of time

Well I have not updated the software to latest version, but currently I'm doing so. :blush:

I have a doubt regarding the Serial.flush() function. Is it different for "arduino software version 0023" and Arduino IDE 1.0.5 ??