Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: absolute time



On Nov 25, 2003, at 2:58 PM, Andrew Gallatin wrote:

I need to know the absolute time. How do I do this in an IOKit
friendly way? On linux I call do_gettimeofday(), and on FreeBSD
I call microtime(), but I don't see anything promising in IOKit.

It seems like this should be possible, since
IOTimerEventSource::wakeAtTime() allows you to specify an absolute
time.

If you hunt around in IOLib.h it is recommended that one use what is found in kern/clock.h (see the Kernel.framework).

In particular clock_get_uptime(uint64_t *result)

Now I am not sure if this is part of the stable kernel API going forward but it likely is.

-Shawn
_______________________________________________
darwin-drivers mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-drivers
Do not post admin requests to the list. They will be ignored.

References: 
 >absolute time (From: Andrew Gallatin <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.