Move wakeup time test to Eventful code

This way wakeup handlers do not need to check the time.