I'm looking for a method of counting Frames Per Second in game applications, the problem is that i dont have the source code for any of those apps, they dont have such functionality implemented inside. To be honest i dont really expect this to be possible but it was worth to ask. 

And to be perfectly clear i understand that i need a basic knowledge and code of the main painting loop to count FPS.

Best Regards