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

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -