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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user