#include "stdio.h"
#include "time.h"
void main()
{
clock_t before;
double result;
before = clock();
for ( int i = 0; i <20000; i++ ) printf("%d\n", i );
result = (double)(clock() - before) / CLOCKS_PER_SEC;
printf("걸린시간은 %5.2f 입니다.\n", result);
}
반응형