GetWUTime
You can use the GetWUTime 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
The GetWUTime function returns the current setting of the wakeup timer and indicates whether the wakeup timer is enabled. The value returned in the WUTime 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 the WUFlag parameter is set to 1, the wakeup timer is enabled. The other bits in the WUFlag parameter are reserved.
SPECIAL CONSIDERATIONS
The GetWUTime 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 |