Re: Microseconds and Carbon
Re: Microseconds and Carbon
- Subject: Re: Microseconds and Carbon
- From: Glen Simmons <email@hidden>
- Date: Mon, 4 Feb 2002 20:22:01 -0600
On Monday, February 4, 2002, at 07:54 PM, Matt Ronge wrote:
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,
Try Microseconds(&temp);
Best,
Glen