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

Re: Milliseconds Function?


  • Subject: Re: Milliseconds Function?
  • From: Lance Bland <email@hidden>
  • Date: Fri, 25 Jan 2002 20:48:46 -0500

Brian,

gettimeofday()

type "man gettimeofday"

at the command line.

-lance


On Friday, January 25, 2002, at 08:12 PM, Brian Moore wrote:

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
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.






_______________________________________________
Lance Bland
System Administrator at VVI
mailto:email@hidden
http://www.vvi.com
Realtime, bulk and web data reporting and visualization


References: 
 >Milliseconds Function? (From: Brian Moore <email@hidden>)

  • Prev by Date: [[NSDocumentController sharedDocumentController] openDocumentWithContentsOfURL:url display:YES];
  • Next by Date: Re: Milliseconds Function?
  • Previous by thread: Milliseconds Function?
  • Next by thread: Re: Milliseconds Function?
  • Index(es):
    • Date
    • Thread