47 #define __FUNC__ "Timer_dhCreate"
66 #if defined(EUCLID_TIMING)
67 sprintf (
msgBuf_dh,
"using EUCLID_TIMING; _SC_CLK_TCK = %i",
70 #elif defined(MPI_TIMING)
78 #define __FUNC__ "Timer_dhDestroy"
93 #define __FUNC__ "Timer_dhStart"
102 #define __FUNC__ "Timer_dhStop"
111 #define __FUNC__ "Timer_dhReadWall"
118 t->
end_wall = times (&(t->end_cpu));
123 #define __FUNC__ "Timer_dhReadCPU"
130 t->
end_wall = times (&(t->end_cpu));
131 retval = (double) (t->end_cpu.tms_utime - t->begin_cpu.tms_utime
132 + t->end_cpu.tms_stime - t->begin_cpu.tms_stime
133 + t->end_cpu.tms_cutime - t->begin_cpu.tms_cutime
134 + t->end_cpu.tms_cstime - t->begin_cpu.tms_cstime)
135 / (double) sc_clk_tck;
139 #define __FUNC__ "Timer_dhReadUsage"
145 double retval = 100.0 * cpu / wall;
154 #elif defined(MPI_TIMING)
157 #define __FUNC__ "Timer_dhStart"
166 #define __FUNC__ "Timer_dhStop"
175 #define __FUNC__ "Timer_dhReadWall"
186 #define __FUNC__ "Timer_dhReadCPU"
193 #define __FUNC__ "Timer_dhReadUsage"
208 #define __FUNC__ "Timer_dhStart"
215 #define __FUNC__ "Timer_dhStop"
222 #define __FUNC__ "Timer_dhReadWall"
229 #define __FUNC__ "Timer_dhReadCPU"
236 #define __FUNC__ "Timer_dhReadUsage"
double Timer_dhReadWall(Timer_dh t)
#define END_FUNC_VAL(retval)
void Timer_dhDestroy(Timer_dh t)
void Timer_dhStop(Timer_dh t)
void Timer_dhCreate(Timer_dh *t)
double Timer_dhReadUsage(Timer_dh t)
void Timer_dhStart(Timer_dh t)
double Timer_dhReadCPU(Timer_dh t)
char msgBuf_dh[MSG_BUF_SIZE_DH]