• 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
NSThread: precise execution timing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSThread: precise execution timing


  • Subject: NSThread: precise execution timing
  • From: Michel Schinz <email@hidden>
  • Date: Wed, 7 Sep 2005 22:08:25 +0200

Hi,

For an application of mine, I would like to measure precisely the time taken by a worker thread to compute some value. I plan to use that timing to decide whether the value should be put in a cache or not.

The problem is that I cannot find how to measure very precisely the time taken by a single NSThread. I looked at getrusage, but according to the man page, it seems to apply to the whole process, and not only to the current thread.

Is there a way to achieve what I want?

Thanks,
Michel.
_______________________________________________
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


  • Prev by Date: Re: IB - HowTo put an NSButtonCell in TableColumn
  • Next by Date: Re: Weird Objective-C observation
  • Previous by thread: Re: Safari Plugin Install Program
  • Next by thread: QTMovie
  • Index(es):
    • Date
    • Thread