• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Microseconds and Carbon
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Microseconds and Carbon


  • Subject: Microseconds and Carbon
  • From: Matt Ronge <email@hidden>
  • Date: Mon, 04 Feb 2002 19:54:38 -0600

Hello,

I'm trying to measure microseconds for some benchmarking and it appears as
though the only way to measure microseconds is via Carbon.

Because I found this:

Mac OS X Header: "CoreServices/CoreServices.h"
void Microseconds (
UnsignedWide *microTickCount
);

I have no idea how to call a Carbon function from Cocoa. CoreServices.h is
included in Cocoa apps isn't it?

If I try this:
UnsignedWide temp;
Microseconds(temp);

I get an error that temp is an incompatible type, so I tried a double with
no luck. Sorry for my newbieness and thanks in advance,
--
Matt Ronge

President
Monkeybread Software
http://www.monkeybreadsoftware.com


  • Follow-Ups:
    • Re: Microseconds and Carbon
      • From: email@hidden
    • Re: Microseconds and Carbon
      • From: Ali Ozer <email@hidden>
    • Re: Microseconds and Carbon
      • From: Glen Simmons <email@hidden>
    • Re: Microseconds and Carbon
      • From: Ben Kennedy <email@hidden>
  • Prev by Date: Mach-O Speed
  • Next by Date: rulers in NSTextViews, particularly vertical rulers
  • Previous by thread: Re: Mach-O Speed ?!?!?!?!?
  • Next by thread: Re: Microseconds and Carbon
  • Index(es):
    • Date
    • Thread