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: UpTime() in IOKit ?



In article <email@hidden>,
"Markus Bollinger" <email@hidden> wrote:

> And simply something like UpTime ?
>
> We were not intended to completely re-write our drivers (using callbacks).
>
> IOSleep will be not suitable for us (polling on a register for a very short
> time).

The equivalent to UpTime within the Mac OS X kernel is clock_get_uptime.
It is in xnu/osfmk/kern/clock.h. There are also macros and routines for
converting to other units there.
_______________________________________________
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: 
 >Re: UpTime() in IOKit ? (From: Dan Markarian <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.