发布时间:2013-01-08 10:20:36
一、struct timeval结构体struct timeval结构体在time.h中的定义为:struct timeval { __time_t tv_sec; /* Seconds. */ __suseconds_t tv_usec; /* Microseconds. */ };其中,tv_sec为Epoch到创建struct timeval时的秒数,tv_usec为微秒数,即秒后面的零头。比如当前我写博文时的tv_sec为1244770435,tv_usec为442388,即当前时间距Ep......【阅读全文】