Re: AbsoluteToNanoseconds deprecated - so use what instead?
On 11 Sep 2012, at 16:41, Quinn The Eskimo! <eskimo1@apple.com> wrote:
On 11 Sep 2012, at 10:38, Phil Jordan <lists@philjordan.eu> wrote:
Hmm, this is a kext target, right?
If not (that is, you're doing this from user space) you should use mach_timebase_info, as shown in QA1398 "Mach Absolute Time Units".
<http://developer.apple.com/library/mac/#qa/qa1398/_index.html>
No, this is not a kext. And using mach_timebase_info() works fine. But I thought there would be a simpler, not-deprecated way, without worrying about integer overflows. Maybe there is none. What I really want: something to measure relative times less than a microsecond. Both NSDate and gettimeofday have only microsecond accuracy. And mach_absolute_time uses "ticks" whose value depends on the cpu. Is there some other (simple, non-deprecated) time function to use? Gerriet. _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.... This email sent to site_archiver@lists.apple.com
participants (1)
-
Gerriet M. Denkmann