PDA

View Full Version : Calculating frame rate



TheEye
05-17-2001, 02:51 AM
Hi,

I`m looking for a way to determine exactly how long the rendering of each frame takes (in ms). Does anyone know how to do this? I`m using C++ and MFC.

Thanks.

Bob
05-17-2001, 03:42 AM
Use timeGetTime(). It will return the current systemtime in ms. You can also use the more acurate QueryPerformanceCounter().