Cogl.FrameInfo.prototype.get_presentation_time

function get_presentation_time(): Number(gint64) {
    // Gjs wrapper for cogl_frame_info_get_presentation_time()
}
  

Gets the presentation time for the frame. This is the time at which the frame became visible to the user.

The presentation time measured in nanoseconds is based on a monotonic time source. The time source is not necessarily correlated with system/wall clock time and may represent the time elapsed since some undefined system event such as when the system last booted.

<note>Linux kernel version less that 3.8 can result in non-monotonic timestamps being reported when using a drm based OpenGL driver. Also some buggy Mesa drivers up to 9.0.1 may also incorrectly report non-monotonic timestamps.</note>

Since 1.14

Returns

the presentation time for the frame