We can declare a variable to hold the current time from the system using:
time_t now = time(0);
time(0) can also be use in genera
time(0)
On most system time_t is define on the same number of bit than integer and is always positive.
In this case you can use:
printf("time: %u", (unsigned int) time(0));