1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 07:13:02 +04:00

Merge pull request #26212 from jamacias:feature/TickMeter-lasttime

Enhance cv::TickMeter to be able to get the last elapsed time
This commit is contained in:
Alexander Smorkalov
2024-10-14 07:56:24 +03:00
committed by GitHub
2 changed files with 33 additions and 5 deletions
@@ -78,6 +78,7 @@ int main()
tm.start();
// do something ...
tm.stop();
cout << "Last iteration: " << tm.getLastTimeSec() << endl;
}
cout << "Average time per iteration in seconds: " << tm.getAvgTimeSec() << endl;
cout << "Average FPS: " << tm.getFPS() << endl;