xtimeout (with gettimeofday)