Display fps when movie is played

I want so code to see if it plays 60 fps (that is my settings) in a movie that must have much power, also, I want to write out for example: it plays 45 fps/60 fps. Is there any way to do this?