GetSleepTimeout
You can use theGetSleepTimeoutfunction to find out how long the computer will wait before going to sleep.
unsigned char GetSleepTimeout();DESCRIPTION
TheGetSleepTimeoutfunction returns the amount of time that the computer will wait after the last user activity before going to sleep. The value ofGetSleepTimeoutis expressed as the number of 15-second intervals that the computer will wait before going to sleep.ASSEMBLY-LANGUAGE INFORMATION
The trap is_PowerMgrDispatch($A09E). The selector value forGetSleepTimeoutis 2 ($02) in the low word of register D0. The sleep timeout value is returned in the low word of register D0.