We receive live relative-altitude updates from CMAltimeter.startRelativeAltitudeUpdates(to:withHandler:) on iPhone. CMAltitudeData inherits CMLogItem.timestamp, which the documentation describes as the time when the item is valid and as seconds since device boot.
We need to determine whether a pressure measurement's event time falls inside an application operation bounded by a supported monotonic clock. Could Apple clarify the supported contract for CMAltitudeData.timestamp on iOS?
-
Does
CMAltitudeData.timestampuse the same epoch and rate asmach_absolute_time(),DispatchTime.uptimeNanoseconds,CACurrentMediaTime(), orProcessInfo.systemUptime? If only some are compatible, which ones? -
Does it advance or pause during device sleep, device lock, application suspension, and background execution? In particular, are its sleep/suspension semantics guaranteed to match any of the clocks above?
-
Is there a supported API for converting
CMLogItem.timestampto a hostCMClock/Mach time, or for sampling “now” in the exact same clock domain used byCMAltitudeData.timestamp? -
Are the answers contractual across supported iPhone hardware and iOS releases, or are they implementation details that applications should not rely on?
-
If direct comparison is not supported, what Apple-supported clock or conversion mechanism should an application use to compare a
CMAltitudeDataevent time with two application-side monotonic operation boundaries?
The question concerns clock semantics only. A minimal reproducer can be supplied if requested, but no application identifier, production data, sensor values, or user data is required to answer it.