OSStatus CancelTimer (TimerID timer, AbsoluteTime *timeRemaining);
CancelTimer cancels a timer previously created by SetInterruptTimer . It returns in timeRemaining the amount of time that was left in the timer when it was canceled. It returns an error if the timer has either already expired or been canceled.
CancelTimer may be called from task level, secondary interrupt level, or hardware interrupt level.