mirror of https://github.com/tongzx/nt5src
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
637 B
34 lines
637 B
//+---------------------------------------------------------------------------
|
|
//
|
|
// Microsoft Windows
|
|
// Copyright (C) Microsoft Corporation, 1995.
|
|
//
|
|
// File: Idle.hxx
|
|
//
|
|
// Contents: Idle time tracker.
|
|
//
|
|
// Classes: CIdleTime
|
|
//
|
|
// History: 15-Nov-95 KyleP Created
|
|
//
|
|
//----------------------------------------------------------------------------
|
|
|
|
#pragma once
|
|
|
|
class CIdleTime
|
|
{
|
|
public:
|
|
|
|
CIdleTime();
|
|
|
|
unsigned PercentIdle();
|
|
|
|
private:
|
|
|
|
LONGLONG _liLastIdleTime;
|
|
LONGLONG _liLastTotalTime;
|
|
ULONG _cProcessors;
|
|
|
|
SYSTEM_PROCESSOR_PERFORMANCE_INFORMATION _aProcessorTime[32];
|
|
};
|
|
|