home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
GameStar 2005 October
/
Gamestar_77_2005-10_dvd.iso
/
Utility
/
attsetup.exe
/
plugins
/
api
/
vc++
/
example
/
cpuload
/
CpuUsage.h
< prev
next >
Wrap
C/C++ Source or Header
|
2004-06-06
|
397b
|
26 lines
#ifndef _CPUUSAGE_H
#define _CPUUSAGE_H
#include <windows.h>
class CCpuUsage
{
public:
CCpuUsage();
virtual ~CCpuUsage();
// Methods
int GetCpuUsage();
int GetCpuUsage(LPCTSTR pProcessName);
BOOL EnablePerformaceCounters(BOOL bEnable = TRUE);
// Attributes
private:
bool m_bFirstTime;
LONGLONG m_lnOldValue ;
LARGE_INTEGER m_OldPerfTime100nSec;
};
#endif