struct timeval{ time_t tv_sec; /*seconds, 秒*/ suseconds tv_usec; /*microseconds, 微秒*/ } timeval表示一个时间点,用秒、微秒来定义时间点。