20 #ifndef LIBMESH_PERFMON_H 21 #define LIBMESH_PERFMON_H 25 #include "libmesh/libmesh_common.h" 36 #ifdef LIBMESH_HAVE_SYS_TIME_H 39 #ifndef LIBMESH_HAVE_GETTIMEOFDAY 40 #include "libmesh/win_gettimeofday.h" 61 const unsigned int v=1,
62 const unsigned int pid=0);
66 double print (std::string msg=
"NULL",
120 <<
": elapsed time: " 121 << elapsed_time <<
" (sec)" 125 <<
": elapsed time: " 126 << elapsed_time <<
" (sec)" 151 const unsigned int v,
152 const unsigned int pid) :
174 #endif // LIBMESH_PERFMON_H const std::string id_string
struct timeval the_time_start
int gettimeofday(struct timeval *tp, struct timezone *tzp)
The libMesh namespace provides an interface to certain functionality in the library.
double print(std::string msg="NULL", std::ostream &my_out=libMesh::out)
PAPI stands for Performance Application Programming Interface.
struct timeval the_time_stop
PerfMon(std::string id, const unsigned int v=1, const unsigned int pid=0)
const unsigned int proc_id
const unsigned int verbose