time now c

#include <time.h>
time_t now = time(0); // Get the system time