//精度要求不高,头文件<time.h>
clock_t starttime, endtime;
starttime = clock();
insert_sort(strings_copy, N);
endtime = clock();
std::cout<<"Insertion sort took<< endtime - starttime<<clocks<<std::endl;
//第二种 <windows.h>
unsigned long startTime,endTime
startTime = GetTickCount();
quickSort(r,0,dataNum-1);
endTime = GetTickCount();
//高精度要求的,可以达到us级 ,头文件<windows.h>
LARGE_INTEGER startTime,endTime;
QueryPerformanceCounter(&startTime);
quickSort(r,0,dataNum-1);
QueryPerformanceCounter(&endTime);
std::cout<<"quickSort 花费了"<<endTime.QuadPart-startTime.QuadPart<<"个时钟周期"<<std::endl;