• 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
Milliseconds Function?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Milliseconds Function?


  • Subject: Milliseconds Function?
  • From: Brian Moore <email@hidden>
  • Date: Fri, 25 Jan 2002 20:12:17 -0500

I've looked around and searched the cocoa docs for some method or function which would allow me to get the current milliseconds (000-999). I've deduced a messy and expensive way: [[[NSCalendarDate date] descriptionWithCalendarFormat:@"%F"] intValue], which works...but it uses way too many CPU cycles to be realistically usable. I apologize in advance if this is unbelievably obvious, but I couldn't find a single way. Can anyone help me?

Thanks.
- Brian Moore


  • Follow-Ups:
    • Re: Milliseconds Function?
      • From: Paul Ferguson <email@hidden>
    • Re: Milliseconds Function?
      • From: "Erik M. Buck" <email@hidden>
    • Re: Milliseconds Function?
      • From: James Montgomerie <email@hidden>
    • Re: Milliseconds Function?
      • From: Lance Bland <email@hidden>
  • Prev by Date: Re: Initializing an Array
  • Next by Date: [[NSDocumentController sharedDocumentController] openDocumentWithContentsOfURL:url display:YES];
  • Previous by thread: Re: Date string from NSDate
  • Next by thread: Re: Milliseconds Function?
  • Index(es):
    • Date
    • Thread