Important: The information in this document is obsolete and should not be used for new development.
GetWUTime
You can use theGetWUTime
function to read the current setting of the wakeup timer.
FUNCTION GetWUTime (VAR WUTime: LongInt; VAR WUFlag: Byte): OSErr;
WUTime
- On exit, the current setting of the wakeup timer, specified as the number of seconds since midnight, January 1, 1904.
WUFlag
- On exit, a bit field encoding the state of the wakeup timer.
DESCRIPTION
TheGetWUTime
function returns the current setting of the wakeup timer and indicates whether the wakeup timer is enabled. The value returned in theWUTime
parameter is the current setting of the wakeup timer, specified as the number of seconds since midnight, January 1, 1904. If the low-order bit (bit 0) of theWUFlag
parameter is set to 1, the wakeup timer is enabled. The other bits in theWUFlag
parameter are reserved.SPECIAL CONSIDERATIONS
TheGetWUTime
function returns an error on machines that do not support the wakeup timer.RESULT CODES
noErr 0 No error pmBusyErr -13001 Wakeup timer is not available on this machine