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 );

........

저작자표시 비영리 동일조건 (새창열림)