CMLogItem timestamp

When using Core Motion, CMLogItem has the timestamp property. The docs state:


"The timestamp is the amount of time in seconds since the device booted."


Is there anyway to reconcile this timestamp with an anchor date?


The workaround seems to be to save the date based on the first instance of a CMDeviceMotion update – but this seems less than ideal for high precision. Is there a way to get the device boot timestamp?

Replies

Theoretically to obtain the device boot Date you can subtract the current uptime (say ProcessInfo.processInfo.systemUptime) from Date()