프로그래밍/C/C++

MFC, C++ 프로그램 수행시간(실행시간) 측정

시니아스 2014. 8. 7. 19:41
#include <stido.h>
#include <time.h>

int main(void)
{
    clock_t startTime, endTime;
    startTime= clock();

    // 수행할 코드를 적어주세요

    endTime = clock();
    printf("수행 시간 : %f\n", ((double)(endTime-startTime)) / CLOCKS_PER_SEC);  
}