DIGITory/Codes
코드 수행 시간 for C/C++
Joe.C
2014. 7. 25. 14:15
#include <time.h>
.....
clock_t start, end;
double duration;
start = clock();
// DO SOMETHING
end = clock();
duration = ( (double)(end - start) / CLOCKS_PER_SEC );
........