#include <sys/time.h>
long gettime() {
timeval t;
gettimeofday(&t, NULL);
return 1000*t.tv_sec + t.tv_usec/1000;
}
Linux C计时
最新推荐文章于 2024-08-21 15:48:03 发布
#include <sys/time.h>
long gettime() {
timeval t;
gettimeofday(&t, NULL);
return 1000*t.tv_sec + t.tv_usec/1000;
}