IOTypes.h Reference

Declared in
IOTypes.h

Overview

Included Headers

  • <IOKit/system.h>

  • <IOKit/IOReturn.h>

  • <stdbool.h>

  • <libkern/OSTypes.h>

  • <libkern/OSBase.h>

  • <device/device_types.h>

Constants

See the Overview section above for header-level documentation.

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.

Available in OS X v10.0 and later.

Declared in IOTypes.h.

kMicrosecondScale

Scale factor for microsecond based times.

Available in OS X v10.0 and later.

Declared in IOTypes.h.

kMillisecondScale

Scale factor for millisecond based times.

Available in OS X v10.0 and later.

Declared in IOTypes.h.

kTickScale

Scale factor for the standard (100Hz) tick.

Available in OS X v10.4 and later.

Declared in IOTypes.h.

kSecondScale

Scale factor for second based times.

Available in OS X v10.0 and later.

Declared in IOTypes.h.

Discussion

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