• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: retrieve a milliseconds interval with obj-C
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: retrieve a milliseconds interval with obj-C


  • Subject: Re: retrieve a milliseconds interval with obj-C
  • From: Andrea Salomoni <email@hidden>
  • Date: Fri, 25 Nov 2005 10:36:57 +0100

Thank you,

return.... I can return inside an action?
And does return stop the execution?

thank you

Il giorno 25/nov/05, alle ore 10:27, j o a r ha scritto:


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



_______________________________________________ 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
  • Follow-Ups:
    • Re: retrieve a milliseconds interval with obj-C
      • From: Marco Scheurer <email@hidden>
References: 
 >retrieve a milliseconds interval with obj-C (From: Andrea Salomoni <email@hidden>)
 >Re: retrieve a milliseconds interval with obj-C (From: j o a r <email@hidden>)

  • Prev by Date: Re: retrieve a milliseconds interval with obj-C
  • Next by Date: Adding a custom entry to NSPopupButton set up with bindings
  • Previous by thread: Re: retrieve a milliseconds interval with obj-C
  • Next by thread: Re: retrieve a milliseconds interval with obj-C
  • Index(es):
    • Date
    • Thread