update sleep time