Contents

setTimeout(UInt32, UInt32)

Setup a callback at after the delay in some unit. See wakeAtTime(AbsoluteTime).

Declaration

virtual IOReturn setTimeout(
 UInt32interval, 
 UInt32 scale_factor = scale_factor);

Parameters

  • interval:

    Delay from now to wake up in some defined unit.

  • scale_factor:

    Define the unit of interval, default to nanoseconds.

Return Value

kIOReturnSuccess if everything is fine, kIOReturnNoResources if action hasn't been declared.

See Also

Miscellaneous