doc: Add serial to list of ci file reserved words
[charm.git] / src / ck-ldb / LBMachineUtil.h
index 44d8a10a5dc95dd6eee0ca14188bf740a77f3d53..3d24f780e0d334837273ed19de374a49994dd3bc 100644 (file)
@@ -1,10 +1,3 @@
-/*****************************************************************************
- * $Source$
- * $Author$
- * $Date$
- * $Revision$
- *****************************************************************************/
-
 /**
  * \addtogroup CkLdb
 */
@@ -19,17 +12,19 @@ public:
   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;