GetCpuLoad

System function.

The GetCpuLoad function returns the CPU load percentage (from 0 to 100). Not available in WinTask Lite.

Syntax

Num=GetCpuLoad()

Parameters

None.

Return value

Num, integer, CPU load percentage.

Num= -3 if the statistical function has failed.

Num= -4 if WinTaskAdmin Service is not started.

Example

 

a=GetCpuLoad()