struct timeval {
time_t tv_sec; /* seconds */
suseconds_t tv_usec; /* microseconds */
};
struct timeval tv;
//....
printf("time %u:%u\n",tv.tv_sec,tv.tv_usec);
tv_sec和tv_usec都是无符号整型的
struct timeval {
time_t tv_sec; /* seconds */
suseconds_t tv_usec; /* microseconds */
};
struct timeval tv;
//....
printf("time %u:%u\n",tv.tv_sec,tv.tv_usec);
tv_sec和tv_usec都是无符号整型的
<br />timeval DESCRIPTION <br /> The functions gettimeofday and settimeofday can
使用未定义的 struct “timeval”
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M