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
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