ADC Home > Reference Library > Reference > Darwin > Kernel Framework Reference

 


IOTypes.h

Includes:
<IOKit/system.h>
<mach/message.h>
<mach/vm_types.h>
<IOKit/IOReturn.h>
<libkern/OSTypes.h>
<libkern/OSBase.h>
<device/device_types.h>

Overview



Enumerations


Scale Factors


enum { 
    kNanosecondScale = 1, 
    kMicrosecondScale = 1000, 
    kMillisecondScale = 1000 * 1000, 
    kSecondScale = 1000 * 1000 * 1000, 
    kTickScale = (
        kSecondScale / 100) 
};  
Constants
kNanosecondScale

Scale factor for nanosecond based times.

kMicrosecondScale

Scale factor for microsecond based times.

kMillisecondScale

Scale factor for millisecond based times.

kTickScale

Scale factor for the standard (100Hz) tick.

kSecondScale

Scale factor for second based times.

Discussion

Used when a scale_factor parameter is required to define a unit of time.


Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.

 

Last Updated: 2008-12-19