views:

30

answers:

1

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.

A: 

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?

Brandon Bodnár
Can you suggest me some sample codes?
Shivan Raptor