Tracking an App's running time iOS
Is there a way that I can know how long the apps in the foreground has been running? I have three possible solutions in mind: I. use battery consumption and battery consumption rate (iOS 8 and later tell you the battery usage of the app, but the batter consumption will be difficult to handle) II. use system processes monitor III. use Apple's diagnostics logs. This approach is quite "backdoor." Plus I am not sure if Apple allows us to use the information or not. Can someone tell me if any of the above solution is realistic? If not, I want to know is it possible to find out the duration of a