pub unsafe extern "C-unwind" fn CMSyncConvertTime(
time: CMTime,
from_clock_or_timebase: &CMClockOrTimebase,
to_clock_or_timebase: &CMClockOrTimebase,
) -> CMTimeAvailable on crate features
CMSync and CMTime only.Expand description
Converts a time from one timebase or clock to another timebase or clock.
If both have a common source, this calculation is performed purely based on the mathematical rates and offsets in the common tree rooted in that source. If they have different source clocks (or are both clocks), this calculation also compensates for measured drift between the clocks. To convert to or from host time, pass CMClockGetHostTimeClock() as the appropriate argument.
ยงSafety
from_clock_or_timebaseshould be of the correct type.to_clock_or_timebaseshould be of the correct type.