GCC complained about implicit declaration of gettimeofday.

as the subject says.