# define CLOCKS_PER_SEC 1000 clock_t tstart=0; void Settime(){tstart=clock();} double Gettime(){return(clock()-tstart)/(double)CLOCKS_PER_SEC;}Settime(); //函数 Gettime();