Re: GetTickCount on the mac
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com On Jan 30, 2009, at 9:05 AM, Jason Coco wrote: On Jan 30, 2009, at 09:27 , Christopher Khaljah Xu wrote: How does clock(3) compare to mach_absolute_time()? _______________________________________________ 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... Hi there! I'm a rookie on a mac. I've been trying to port some windows programs that was written in C/C++ onto the mac. I need to rewrite a timer that measures CPU ticks between the start and end of an operation. I wonder if there is something in the mac api similar as GetTickCount or GetTickCount64 ? You can use mach_absolute_time() (declared in mach/mach_time.h) for this purpose. For more information on using this routine, see this technical qa: http://developer.apple.com/qa/qa2004/qa1398.html Jason This email sent to site_archiver@lists.apple.com
participants (1)
-
Andy Wiese