Timer for sleeping
update Timer for KeepAlive to adjust the sleeping time.