Queries the relative rate of one timebase or clock relative to another timebase or clock.
- iOS 6.0+
- macOS 10.8+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 6.0+
If both have a common master, this calculation is performed purely based on the rates in the common tree rooted in that master.
If they have different master clocks (or are both clocks), this calculation takes into account the measured drift between the two clocks, using host time as a pivot. The rate of a moving timebase relative to a stopped timebase is a NaN. Calling
CMTimebaseGetEffectiveRate(timebase) is equivalent to calling
Returns a Boolean that indicates whether it is possible for two clocks to drift relative to each other.
Queries the relative rate of one timebase or clock relative to another timebase or clock and the times of each timebase or clock at which the relative rate went into effect.
Converts a time from one timebase or clock to another timebase or clock.
Returns a Boolean indicating whether it is possible for one timebase/clock to drift relative to the other.
A helper function to get time from a clock or timebase.