moab
|
#include <CpuTimer.hpp>
Public Member Functions | |
CpuTimer () | |
double | time_since_birth () |
double | time_elapsed () |
long | mem_since_birth () |
long | mem_elapsed () |
CpuTimer () | |
double | since_birth () |
double | elapsed () |
Private Member Functions | |
double | runtime () |
long | runmem () |
Private Attributes | |
double | tAtBirth |
double | tAtLast |
double | mAtBirth |
double | mAtLast |
long | rssAtBirth |
long | rssAtLast |
double | atBirth |
double | atLast |
Definition at line 13 of file CpuTimer.hpp.
moab::CpuTimer::CpuTimer | ( | ) | [inline] |
moab::CpuTimer::CpuTimer | ( | ) | [inline] |
Definition at line 159 of file WriteHDF5Parallel.cpp.
double moab::CpuTimer::elapsed | ( | ) | [inline] |
Definition at line 161 of file WriteHDF5Parallel.cpp.
long moab::CpuTimer::mem_elapsed | ( | ) | [inline] |
Definition at line 27 of file CpuTimer.hpp.
long moab::CpuTimer::mem_since_birth | ( | ) | [inline] |
Definition at line 26 of file CpuTimer.hpp.
long moab::CpuTimer::runmem | ( | ) | [inline, private] |
Definition at line 47 of file CpuTimer.hpp.
double moab::CpuTimer::runtime | ( | ) | [inline, private] |
Definition at line 30 of file CpuTimer.hpp.
{ #if defined(_MSC_VER) || defined(__MINGW32__) return (double)clock() / CLOCKS_PER_SEC; #elif defined(USE_MPI) return MPI_Wtime(); #else struct rusage r_usage; getrusage(RUSAGE_SELF, &r_usage); double utime = (double)r_usage.ru_utime.tv_sec + ((double)r_usage.ru_utime.tv_usec/1.e6); double stime = (double)r_usage.ru_stime.tv_sec + ((double)r_usage.ru_stime.tv_usec/1.e6); return utime + stime; #endif }
double moab::CpuTimer::since_birth | ( | ) | [inline] |
Definition at line 160 of file WriteHDF5Parallel.cpp.
double moab::CpuTimer::time_elapsed | ( | ) | [inline] |
Definition at line 25 of file CpuTimer.hpp.
double moab::CpuTimer::time_since_birth | ( | ) | [inline] |
Definition at line 24 of file CpuTimer.hpp.
double moab::CpuTimer::atBirth [private] |
Definition at line 157 of file WriteHDF5Parallel.cpp.
double moab::CpuTimer::atLast [private] |
Definition at line 157 of file WriteHDF5Parallel.cpp.
double moab::CpuTimer::mAtBirth [private] |
Definition at line 16 of file CpuTimer.hpp.
double moab::CpuTimer::mAtLast [private] |
Definition at line 16 of file CpuTimer.hpp.
long moab::CpuTimer::rssAtBirth [private] |
Definition at line 17 of file CpuTimer.hpp.
long moab::CpuTimer::rssAtLast [private] |
Definition at line 17 of file CpuTimer.hpp.
double moab::CpuTimer::tAtBirth [private] |
Definition at line 15 of file CpuTimer.hpp.
double moab::CpuTimer::tAtLast [private] |
Definition at line 15 of file CpuTimer.hpp.