본문 바로가기
언어/C++

C++ 시간 계산

by 김어찐 2021. 3. 11.
728x90
void main()
{
    clock_t start, end;
    start =clock();
    double result;

	/*
    내가 작성한 코드
    */

	result = (double)(end - start)/CLOCKS_PER_SEC;
    printf("%f", result);
}
728x90