pub unsafe extern "C-unwind" fn CVDisplayLinkGetCurrentTime(
display_link: &CVDisplayLink,
out_time: NonNull<CVTimeStamp>,
) -> CVReturn👎Deprecated: use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:)
Available on crate features
CVBase and CVReturn and CVDisplayLink only.Expand description
Retrieves the current (“now”) time of a given CVDisplayLink
This call may be used to get the current time of a running CVDisplayLink, outside of the output callback.
Parameter displayLink: The CVDisplayLink to get the current time from.
Parameter outTime: A pointer to a CVTimeStamp struct. This struct’s version field must currently be set correctly (currently 0) to indicate which version of the timestamp struct is desired.
Returns: kCVReturnSuccess if the current time could be retrieved, otherwise an error indicating why the operation failed.