1>timevalstruct timeval{ long tv_sec;/*秒*/ long tv_usec;/*微妙*/};2>timezone 结构定义为:struct timezone{ int tz_minuteswest;/*和greenwich 时间差了多少分钟*/ int tz_dsttime;/*type of DST correction*/}3>在gettimeofday()函数中tv或者tz都可以为空。如果为空则就不返回其对应的结构体。4>函数执行成功后返回0,失败后返回-1,错误代码存于errno中。