Re: Microseconds and Carbon
Re: Microseconds and Carbon
- Subject: Re: Microseconds and Carbon
- From: Ali Ozer <email@hidden>
- Date: Mon, 4 Feb 2002 19:14:34 -0800
>
I'm trying to measure microseconds for some benchmarking and it appears
>
as
>
though the only way to measure microseconds is via Carbon.
You can use [NSDate timeIntervalSinceReferenceDate], which returns an
NSTimeInterval (a double) with about microseconds precision. Or you can
use CFAbsoluteTimeGetCurrent() from CoreFoundation, which is equivalent.
Ali