定义函数
#include#include #include #include class Util { public: static double millitime() { struct timeval tv; struct timezone tz; gettimeofday(&tv, &tz); return tv.tv_sec + tv.tv_usec / 1000000.00; } };
使用时
int aveNonuniform(int arg,const char**args){
double start,end;
start=Util::millitime();
end=Util::millitime();
cout<<"aveNonuni time is "<



