time_t time(time_t *timer)
The time function returns the systems current time stamp. If timer is not a null pointer, the return value is also assigned to the object it points to.