generated code(automatically call the API, and dump the structure appropriately):
void dump_time(void)
{
struct timeval tv = {0};
struct timezone tz = {0};
gettimeofday(&tv, &tz);
printf("tv_sec: %d, tv_usec: %d\n", tv.tv_sec, tv.tv_usec);
printf("tz_minuteswest: %d, tz_dsttime: %d\n", tz.tz_minuteswest, tz.tz_dsttime);
}