"Fossies" - the Fresh Open Source Software Archive

Member "xosview-1.23/hpux/cpumeter.h" (11 Jul 2020, 527 Bytes) of package /linux/misc/xosview-1.23.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "cpumeter.h" see the Fossies "Dox" file reference documentation.

    1 //  
    2 //  Copyright (c) 1994, 1995 by Mike Romberg ( romberg@fsl.noaa.gov )
    3 //
    4 //  This file may be distributed under terms of the GPL
    5 //
    6 
    7 #ifndef _CPUMETER_H_
    8 #define _CPUMETER_H_
    9 
   10 #include "fieldmetergraph.h"
   11 
   12 class CPUMeter : public FieldMeterGraph {
   13 public:
   14   CPUMeter( XOSView *parent );
   15   ~CPUMeter( void );
   16 
   17   const char *name( void ) const { return "CPUMeter"; }
   18   void checkevent( void );
   19 
   20   void checkResources(void);
   21 protected:
   22   float cputime_[2][5];
   23   int cpuindex_;
   24 
   25   void getcputime( void );
   26 private:
   27 };
   28 
   29 #endif