[core.sleep] fixed: get current time when continuation is runned not when sleep is called