retrieve current time c code example Example: function to find system time in c time_t now = time(0); // Get the system time