Added computation of current frame rate