windows-nt/Source/XPSP1/NT/inetsrv/query/cindex/idle.hxx

35 lines
637 B
C++
Raw Normal View History

2020-09-26 03:20:57 -05:00
//+---------------------------------------------------------------------------
//
// 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];
};