- double t = (double)cvGetTickCount();
- //do the hard work job
- t = (double)cvGetTickCount() - t;
- std::cout << "耗时:(毫秒): " << t / ((double)cvGetTickFrequency()*1000.) << endl;
- //该片段来自于http://www.codesnippet.cn/detail/3012201514336.html
来源: http://www.codesnippet.cn/detail/3012201514336.html