Re: retrieve a milliseconds interval with obj-C
Re: retrieve a milliseconds interval with obj-C
- Subject: Re: retrieve a milliseconds interval with obj-C
- From: j o a r <email@hidden>
- Date: Fri, 25 Nov 2005 10:27:53 +0100
On 25 nov 2005, at 10.16, Andrea Salomoni wrote:
NSDate * myStartDate = [NSDate date];
Use this instead:
NSTimeInterval start = [NSDate timeIntervalSinceReferenceDate];
NSTimeInterval stop = [NSDate timeIntervalSinceReferenceDate];
I have two question: how to subtract two dates
NSTimeInterval diff = (stop - start );
and how exit from a function... exit is correct?
How about "return"?
j o a r
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden