Re: gettimeofday cost on intel?
Re: gettimeofday cost on intel?
- Subject: Re: gettimeofday cost on intel?
- From: Matt Watson <email@hidden>
- Date: Tue, 9 May 2006 09:26:11 -0700
On May 9, 2006, at 8:11 AM, Andrew Gallatin wrote:
I need a cheap way to measure events with at least a 10ms granularity
that is monotonically increasing, regardless of the CPU my thread has
been scheduled upon.
I'd be surprised if mach_absolute_time() does not work for this.
Can I count on gettimeofday() using the commpage
(and, hence, being very cheap) on x86 like it is on ppc?
gettimeofday() is implemented in the commpage for both PowerPC and
Intel.
matt.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden