Cogl.FrameInfo.prototype.get_refresh_rate

function get_refresh_rate(): Number(gfloat) {
    // Gjs wrapper for cogl_frame_info_get_refresh_rate()
}
  

Gets the refresh rate in Hertz for the output that the frame was on at the time the frame was presented.

<note>Some platforms can't associate a Cogl.Output with a Cogl.FrameInfo object but are able to report a refresh rate via this api. Therefore if you need this information then this api is more reliable than using Cogl.FrameInfo.prototype.get_output followed by Cogl.Output.prototype.get_refresh_rate.</note>

Since 1.14

Returns

the refresh rate in Hertz