udpate sleep time