NSThread: precise execution timing
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