- 博客(1)
- 问答 (1)
- 收藏
- 关注
转载 函数gettimeofday(),struct timeval结构体、struct timezone结构体用法
一、介绍#include<sys/time.h> /* 需要的头文件 *//*将得到从linux epoch(1970年1月1日0点0分0秒,UTC格林威治时间)算起的总秒和微秒数。结构体struct timeval中tv_sec存储秒数,tv_usec存储微秒数。*/int gettimeofday(struct timeval * tv,struct timezone * tz);...
2018-07-16 09:18:00 2412
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人