doc: Add serial to list of ci file reserved words
[charm.git] / src / ck-ldb / LBMachineUtil.h
index 8908555c3b77922007cfd34d42fad6e202ef6ee7..3d24f780e0d334837273ed19de374a49994dd3bc 100644 (file)
@@ -1,10 +1,3 @@
-/*****************************************************************************
- * $Source$
- * $Author$
- * $Date$
- * $Revision$
- *****************************************************************************/
-
 /**
  * \addtogroup CkLdb
 */
 #ifndef _LDMACHINEUTIL_H_
 #define _LDMACHINEUTIL_H_
 
-#include "charm++.h"
-
 class LBMachineUtil {
 public:
   LBMachineUtil();
   void StatsOn();
   void StatsOff();
   void Clear();
-  void TotalTime(double* walltime, double* cputime);
-  void IdleTime(double* walltime) { *walltime = total_idletime; };
+  void TotalTime(LBRealType* walltime, LBRealType* cputime);
+  void IdleTime(LBRealType* walltime) { *walltime = total_idletime; };
 
 private:
   enum { off, on } state;
-  double total_walltime;
-  double total_cputime;
-  double total_idletime;
+  LBRealType total_walltime;
+  LBRealType total_idletime;
   double start_totalwall;
-  double start_totalcpu;
   double start_idle;
+#if CMK_LB_CPUTIMER
+  LBRealType total_cputime;
+  double start_totalcpu;
+#endif
 
   int cancel_idleStart, cancel_idleEnd;