In order to measure the time duration while my app is running, as well as the time that passed while my app was idle in the background, I need a reference clock that is not altered by the user changing the Time+Date of his calendar clock.
I can not rely on NSDate because that can be changed by the user while my app is in the background (and no, intercepting the notifications related to such clock changes is overkill for my needs).
What I need is a function such as "seconds since boot of the OS". Mac OS offer such functions (both Ticks and Microseconds), but what about iOS?