#include <ctime>
using namespace std;
void ellaspedTimeTest() { clock_t start_time; clock_t end_time; start_time = clock();
//Do something ...
end_time = clock(); ellasped_time = (double)(end_time - start_time)/CLOCKS_PER_SEC;
}
'Coding > CPP 삽질기' 카테고리의 다른 글
피보나치 수열 (0) | 2013.06.06 |
---|---|
fall-through (0) | 2013.05.13 |
Programming quiz (0) | 2012.10.25 |