copy timeout into seperate timeval struct for select call