Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

answered Feb 28 '13

berak gravatar image

i'm using opencv's timing functions for that:

int64 t0 = cv::getTickCount();
// do something
int64 t1 = cv::getTickCount();
doubles seconds = double( t0 - t1 ) / cv::getTickFrequency();
cerr << "took : " << seconds << endl;
click to hide/show revision 2
No.2 Revision

i'm using opencv's timing functions for that:

int64 t0 = cv::getTickCount();
// do something
int64 t1 = cv::getTickCount();
doubles seconds = double( t1 - t0 - t1 ) / cv::getTickFrequency();
cerr << "took : " << seconds << endl;