Added nice header using CVS keywords for *.[cCh] files.
[charm.git] / src / ck-ldb / LBMachineUtil.h
1 /*****************************************************************************
2  * $Source$
3  * $Author$
4  * $Date$
5  * $Revision$
6  *****************************************************************************/
7
8 #ifndef _LDMACHINEUTIL_H_
9 #define _LDMACHINEUTIL_H_
10
11 #include "converse.h"
12
13 class LBMachineUtil {
14 public:
15   LBMachineUtil();
16   void StatsOn();
17   void StatsOff();
18   void Clear();
19   void TotalTime(double* walltime, double* cputime);
20   void IdleTime(double* walltime) { *walltime = total_idletime; };
21   void IdleStart();
22   void IdleEnd();
23   
24 private:
25   enum { off, on } state;
26   double total_walltime;
27   double total_cputime;
28   double total_idletime;
29   double start_totalwall;
30   double start_totalcpu;
31   double start_idle;
32
33 };
34
35 #endif  // _LDMACHINEUTIL_H_