摘要:
一、clock#includeclock_t start,end;start=clock();end=clock();couttime_t start,end;start=time();//time(&start)end=time();coutstruct timespec start,end;//struct timespec {// time_t tv_sec; /* seconds */// long tv_nsec; /* nanoseconds */// };clock_gettime(CLOCK_PROCESS_CPUTIME_ID,&start);clock_ge 阅读全文