CMSyncGetTime

Function CMSyncGetTime 

Source
pub unsafe extern "C-unwind" fn CMSyncGetTime(
    clock_or_timebase: &CMClockOrTimebase,
) -> CMTime
Available on crate features CMSync and CMTime only.
Expand description

A helper function to get time from a clock or timebase.

CMSyncGetTime simply calls either CMClockGetTime or CMTimebaseGetTime, as appropriate. It comes in handy for things like: CMClockOrTimebaseRef source = CMTimebaseCopySource(timebase); CMSyncGetTime(source); CFRelease(source);

ยงSafety

clock_or_timebase should be of the correct type.