LoadAverageStats.h++
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef __ccxx_LoadAverageStats_hxx
00024 #define __ccxx_LoadAverageStats_hxx
00025
00026 #include <commonc++/SystemStats.h++>
00027
00028 namespace ccxx {
00029
00037 class COMMONCPP_API LoadAverageStats : public SystemStats
00038 {
00039 public:
00040
00042 LoadAverageStats();
00043
00045 ~LoadAverageStats() throw();
00046
00048 inline double getLoad1Min() const throw()
00049 { return(_load1Min); }
00050
00052 inline double getLoad5Min() const throw()
00053 { return(_load5Min); }
00054
00056 inline double getLoad15Min() const throw()
00057 { return(_load15Min); }
00058
00059 bool collect() throw();
00060 void reset() throw();
00061
00062 private:
00063
00064 double _load1Min;
00065 double _load5Min;
00066 double _load15Min;
00067
00068 CCXX_COPY_DECLS(LoadAverageStats);
00069 };
00070
00071 };
00072
00073 #endif // __ccxx_LoadAverageStats_hxx
00074
00075