7 #ifndef _CPU_USAGE_CLASS_HEADER_
8 #define _CPU_USAGE_CLASS_HEADER_
20 tUInt64 nLastSysIdle, nLastSysKernel, nLastSysUser;
21 tUInt64 nLastProcKernel, nLastProcUser;
24 tUInt64 nLastSysUser, nLastSysUserNice, nLastSysKernel, nLastSysIdle;
25 clock_t nLastProcTotal, nLastProcKernel, nLastProcUser;
void tVoid
The tVoid is always the definition for the void (non-type).
tVoid * tHandle
type definition for a handle value (platform and compiler dependent type).
double tFloat64
type definition for Float64 (64bit double values) (platform and compiler independent type).
uint64_t tUInt64
type definition for unsigned integer values (64bit) (platform and compiler independent type).
This helper classes can be used to determine the current CPU usage.
tVoid Init()
Initializer for CPU usage calculations.
tVoid GetCurrent(tFloat64 &fUsagePercentTotal, tFloat64 &fUsagePercentByMe)
Getter for the current CPU usage.
ADTF A_UTIL Namespace - Within adtf this is used as adtf::util or adtf_util.