2)linux tiem us,ms,s
#include "sys/tiem"
2、参数
struct timeval{
long tv_sec; //秒
long tv_usec; //微秒
};
timeval t;
gettimeofday(&t,NULL); get now time
linux下获取时间us,ms
最新推荐文章于 2023-10-10 15:58:32 发布
2)linux tiem us,ms,s
#include "sys/tiem"
2、参数
struct timeval{
long tv_sec; //秒
long tv_usec; //微秒
};
timeval t;
gettimeofday(&t,NULL); get now time