time and sleep working