프로그램 실행시간 측정

OpenCV/example 2013. 5. 20. 22:25

OpenCV


int64 startTime = getTickCount(); double frequency = getTickFrequency();

//처리할 프로그램 함수()

int64 endTime = getTickCount(); cout << (endTime - startTime) / frequency;


int64 t,tinit;

tinit = getTickCount();

//처리 함수()

t = getTickCount() - tinit;

반응형