Timer sleep: implemented hook in interrupt and sleep