Use time.h, not sys/time.h.