0
0
mirror of https://github.com/opencv/opencv.git synced 2026-01-18 17:21:42 +01:00

Enhance cv::TickMeter to be able to get the last ellapsed time

This commit is contained in:
Javier Macias Sola
2024-09-28 12:24:36 +02:00
parent 450e741f8d
commit 679931dcde
2 changed files with 33 additions and 5 deletions

View File

@@ -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;