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) :
PAPI stands for Performance Application Programming Interface.
const unsigned int verbose
double print(std::string msg="NULL", std::ostream &my_out=libMesh::out)
const unsigned int proc_id
struct timeval the_time_start
const std::string id_string
PerfMon(std::string id, const unsigned int v=1, const unsigned int pid=0)
struct timeval the_time_stop
The libMesh namespace provides an interface to certain functionality in the library.
int gettimeofday(struct timeval *tp, struct timezone *tzp)