Calculate average FPS and Frame duration