Function CVDisplayLinkGetOutputVideoLatency

Source
pub unsafe extern "C-unwind" fn CVDisplayLinkGetOutputVideoLatency(
    display_link: &CVDisplayLink,
) -> CVTime
👎Deprecated: use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:)
Available on crate features CVDisplayLink and CVBase only.
Expand description

Retrieves the nominal latency of a CVDisplayLink.

This call allows one to retrieve the device’s built in output latency. An NTSC device with one frame of latency might report back 1001/30000 or 2002/60000, for example.

Parameter displayLink: The CVDisplayLink to get the latency period from.

Returns: A CVTime struct that holds the latency. This value may be indefinite.