retrieve a milliseconds interval with obj-C
retrieve a milliseconds interval with obj-C
- Subject: retrieve a milliseconds interval with obj-C
- From: Andrea Salomoni <email@hidden>
- Date: Fri, 25 Nov 2005 10:16:27 +0100
Hi to all,
I need to retrieve a time interval between two functions in
milliseconds...
I don't think that NSTimer is enough.
My situation is like this:
NSDate * myStartDate = [NSDate date];
while (1=1)
{
second date
if ((second date - myStartDate)>10)
{
exit;
}
}
I have two question: how to subtract two dates and how exit from a
function... exit is correct?
Thank you all
Andrea
_______________________________________________
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