Re: gettimeofday cost on intel?
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Matt Watson writes:
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.
I did not know about this. Nm reveals its symbol in libc (at least on ppc). Is it documented somewhere? Does it also use the commpage?
gettimeofday() is implemented in the commpage for both PowerPC and Intel.
Great! Thanks, Drew _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
Andrew Gallatin