I want to record the duration of Application executed in order to keep logs of activity of users. Should I use a global NSTimer to record the time? or is there any better method?
Sample codes are appreciated.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Couldn’t you record the current time when your application starts in the applicationDidFinishLaunching: method and then record the end time and log it in the applicationWillTerminate: method?