Mac Developer Library

Developer

IOTypes.h Reference

Options
Deployment Target:

On This Page
Language:

IOTypes.h Reference

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.

  • Declaration

    Swift

    var kNanosecondScale: Int { get } var kMicrosecondScale: Int { get } var kMillisecondScale: Int { get } var kTickScale: Int { get } var kSecondScale: Int { get }

    Objective-C

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

    Constants

    • kNanosecondScale

      kNanosecondScale

      Scale factor for nanosecond based times.

      Available in OS X v10.0 and later.

    • kMicrosecondScale

      kMicrosecondScale

      Scale factor for microsecond based times.

      Available in OS X v10.0 and later.

    • kMillisecondScale

      kMillisecondScale

      Scale factor for millisecond based times.

      Available in OS X v10.0 and later.

    • kTickScale

      kTickScale

      Scale factor for the standard (100Hz) tick.

      Available in OS X v10.4 and later.

    • kSecondScale

      kSecondScale

      Scale factor for second based times.

      Available in OS X v10.0 and later.

    Discussion

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