• 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: Reading in dictionary from txt file: options for speed
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Reading in dictionary from txt file: options for speed


  • Subject: Re: Reading in dictionary from txt file: options for speed
  • From: WT <email@hidden>
  • Date: Thu, 16 Apr 2009 20:45:55 +0200

On Apr 16, 2009, at 7:43 PM, Marcel Weiher wrote:

Hi Wagner,

we have rather impressive hardware these days, and Objective-C can access all that power if you let it.

No kidding.

Incidentally, the - [start timeIntervalSinceNow] you used in your code is a really clever trick for getting elapsed time, it took me a while to figure out that it was not a bug :-)

Thanks. To be honest, I didn't (and still don't) know what the standard way to do it is so I looked at the documentation for NSDate and, by chance, the first method my eyes landed on was - timeIntervalSinceNow. It says that if the receiver is an earlier date than now, the result is negative, so I cooked up the code you saw. Maybe if I wasn't in a such a hurry, I'd have figured out how to do it in a less enigmatic way. So, what *is* the standard way to measure elapsed time?


Wagner

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Reading in dictionary from txt file: options for speed (From: Miles <email@hidden>)
 >Re: Reading in dictionary from txt file: options for speed (From: Marcel Weiher <email@hidden>)
 >Re: Reading in dictionary from txt file: options for speed (From: WT <email@hidden>)
 >Re: Reading in dictionary from txt file: options for speed (From: Marcel Weiher <email@hidden>)

  • Prev by Date: Re: IsBadCodePtr in Cocoa or Unix?
  • Next by Date: Re: Reading in dictionary from txt file: options for speed
  • Previous by thread: Re: Reading in dictionary from txt file: options for speed
  • Next by thread: Re: Reading in dictionary from txt file: options for speed
  • Index(es):
    • Date
    • Thread