hi ,
just put a WAITFOR DELAY '00:00:01' statement after
SET @dateTest = GETDATE() statement
Set @SetDateCommand = 'date ' + convert(varchar,@dateLoop,110)
Execute master.dbo.xp_cmdshell @SetDateCommand
SET @dateTest = GETDATE()
select @dateTest,GETDATE()