DECLARE @CPU_BUSY int,
@IDLE int,
@seconds int,
@secondsString varchar(50)
SELECT @CPU_BUSY = @@CPU_BUSY, @IDLE = @@IDLE
WAITFOR DELAY ''000:00:01''
set @seconds = 0
WHILE (SELECT (@@CPU_BUSY - @CPU_BUSY)/((@@IDLE - @IDLE + @@CPU_BUSY - @CPU_BUSY)...