#include <time.h>

time() works in seconds.