How to measure FPS of an OpenCV camera preview?

that code calls that function once.

it should now read frames from the capture object and then print something… hopefully.