I still think you should store the fps data in a variable and display it at the programs end in both codes. This would help to negate any issues with how each system draws text to the screen.
Also, when doing so, you should take an average over several seconds to help negate any anomalies that could occur during any given second.
Also, when doing so, you should take an average over several seconds to help negate any anomalies that could occur during any given second.