doc: Add serial to list of ci file reserved words
[charm.git] / src / ck-ldb / LBMachineUtil.h
index 9d277d2be91d387b2626449e0c543fbd7fe6a2c4..3d24f780e0d334837273ed19de374a49994dd3bc 100644 (file)
@@ -1,35 +1,39 @@
-/*****************************************************************************
- * $Source$
- * $Author$
- * $Date$
- * $Revision$
- *****************************************************************************/
+/**
+ * \addtogroup CkLdb
+*/
+/*@{*/
 
 #ifndef _LDMACHINEUTIL_H_
 #define _LDMACHINEUTIL_H_
 
-#include "converse.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 IdleStart();
-  void IdleEnd();
-  
+  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;
 
+  void IdleStart(double curWallTime);
+  void IdleEnd(double curWallTime);
+  static void staticIdleStart(LBMachineUtil *util,double curWallTime);
+  static void staticIdleEnd(LBMachineUtil *util,double curWallTime);
 };
 
 #endif  // _LDMACHINEUTIL_H_
+
+/*@}*/