/*****************************************************************************
 * Qwt Examples - Copyright (C) 2002 Uwe Rathmann
 * This file may be used under the terms of the 3-clause BSD License
 *****************************************************************************/

#pragma once

#include <QTime>

class CpuStat
{
  public:
    CpuStat();

    void statistic( double& user, double& system );
    QTime upTime() const;

  private:

    enum Value
    {
        User,
        Nice,
        System,
        Idle,

        NValues
    };

    void lookUp( double[NValues] ) const;

    double m_procValues[NValues];
};
