visual c++ - Run time of code in open cv? -
i working on open cv.the code written in c++.i want find out time taken program execute.its basic question.
there lots of ways (see easily measure elapsed time). simple approach following:
#include <time> void main() { clock_t start_time = clock(); // clock_t end_time = clock(); float time_in_seconds = (end_time-start_time)/(float)clocks_per_sec; }
Comments
Post a Comment