serial reception for a prescribed amount of time

I'm using arduino software version 0023