break after x second()

Studying the BlinkWithoutDelay example would be useful I think.