티스토리 뷰

02.윈도우/Qt

Qt 실행시간 체크 - QTime

피자돌이 2014. 2. 19. 16:15
반응형

종종 성능 체크를 위해 시간을 체크하는 경우가 있을 때 사용

1
2
3
4
5
Qtime time;
time.start();
int nElapsed = time.elapsed();
 
qDebug() << "Elapsed Time:" << nElapsed;


Returns the number of milliseconds that have elapsed since the last time start() or restart() was called.

관련링크 : http://qt-project.org/doc/qt-4.8/qtime.html

반응형

'02.윈도우 > Qt' 카테고리의 다른 글

Qt에서 현재경로 가져오기  (0) 2014.03.10
Drag&Drop Event  (0) 2014.03.07
QFontMetrics elidedText  (0) 2014.02.24
Qt Creator Color Scheme & KeyboardSetting  (0) 2014.02.19
qDebug() to File  (0) 2014.02.18
댓글
반응형
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
«   2024/05   »
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 31
글 보관함