Source code of Windows XP (NT5)
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

//+---------------------------------------------------------------------------
//
// 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];
};