6 #ifndef _LDMACHINEUTIL_H_
7 #define _LDMACHINEUTIL_H_
15 void TotalTime(LBRealType
* walltime
, LBRealType
* cputime
);
16 void IdleTime(LBRealType
* walltime
) { *walltime
= total_idletime
; };
19 enum { off
, on
} state
;
20 LBRealType total_walltime
;
21 LBRealType total_idletime
;
22 double start_totalwall
;
25 LBRealType total_cputime
;
26 double start_totalcpu
;
29 int cancel_idleStart
, cancel_idleEnd
;
31 void IdleStart(double curWallTime
);
32 void IdleEnd(double curWallTime
);
33 static void staticIdleStart(LBMachineUtil
*util
,double curWallTime
);
34 static void staticIdleEnd(LBMachineUtil
*util
,double curWallTime
);
37 #endif // _LDMACHINEUTIL_H_