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
最新推荐文章于 2025-02-10 14:55:01 发布
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