timer keep going under sleep mode ?

No, but the WatchDog has also a timer, you can keep that running and power everything else down. It is very (very) inaccurate, so an RTC is needed to know the time.