I would like to measure the amount of time between successive calls of a particular function. This means that I need to save the time of the last call. I want to put in a line of code like this:
mostRecentDate = [NSDate date]
The documentation says that [NSDate date] creates a new NSDate object. Does that mean that I need to deallocate the previous NSDate object?
(I wish that Apple had more Obj-C sample code. I am having trouble getting the hang of this language.)