Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |
Tags
- 영상처리
- VisualStudio
- MFC
- Thread
- 여객선
- inspiron 15 7590
- 가벼워
- SetThreadAffinityMask
- Jetson Nano
- 사용자매크로
- 인스피론
- 환경변수
Archives
- Today
- Total
MuTa
프로그램 실행시간 측정하기 본문
http://zfanta.com/345
그냥 GetTickCount() 한 방으로 ms 단위로 뽑는 방법도 있습니다.
- #include <stdio.h>
- #include <time.h>
- main()
- {
- clock_t start, end;
- int count,a;
- double result;
-
- start = clock();
- for(count=0;count<10000;count++)
- printf(" ");
-
- end = clock();
-
- result = (double)(end-start) / CLOCKS_PER_SEC;
-
- printf("%f",result);
- }
그냥 GetTickCount() 한 방으로 ms 단위로 뽑는 방법도 있습니다.
'MFC-C++' 카테고리의 다른 글
Visual Studio 2010에서 OpenCV 2.3.1 설치 (0) | 2011.12.08 |
---|---|
조건 컴파일 #if #endif (0) | 2011.12.03 |
VC2010 설정 Lib files 무시해야 하는 라이브러리 (0) | 2011.12.02 |
클래스 사라질때 (0) | 2011.12.02 |
영상 이미지 처리 FPS 구하기 (0) | 2011.12.02 |