site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:cc:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=j89FTxH8Js5j9FIku27UoVY0TekkmVC7AFZfiwtL3u8=; b=ugNJY+7CcDK5LEJBj4udkicOHkxA2VEFcVCC0YnRW/yDAgTRq3efI/SBNuCIu2tOb3 f8ZjjgEpUbdlgbYbBi1W+NQLjmrzbNyrXUVEEK61+5ecmACXqBd73qFhCH7lfcW6M+qp G3H1gbluIwQWjvfYhpqkMr6TV9qCWApd0KSxo= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=cc:message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=hohZfMRh01STahIWWA7OvfrdWxYbTfitSl4Je5U/enhvNrc0InpV1ZFnibdaD/LDWL g5AzbF6IeuBnjYrfp0IERmWVpLNDMUTdrY89ypIn9i+hWRsclWqXdWj+uTdVXx3tPAln AuQHM7ter8kqjrXj82XQjLFX9fzpoArOz0D30= On Jan 30, 2009, at 09:27 , Christopher Khaljah Xu wrote: Jason _______________________________________________ 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 This email sent to site_archiver@lists.apple.com
participants (1)
-
Jason Coco