A simple timer that provides access to the MPI timing facilities. More...
#include <timer.hpp>
Public Member Functions | |
timer () | |
Initializes the timer. More... | |
void | restart () |
Restart the timer. More... | |
double | elapsed () const |
Return the amount of time that has elapsed since the last construction or reset, in seconds. More... | |
double | elapsed_max () const |
Return an estimate of the maximum possible value of elapsed(). More... | |
double | elapsed_min () const |
Returns the minimum non-zero value that elapsed() may return. More... | |
Static Public Member Functions | |
static bool | time_is_global () |
Determines whether the elapsed time values are global times or local processor times. More... | |
A simple timer that provides access to the MPI timing facilities.
The timer
class is a simple wrapper around the MPI timing facilities that mimics the interface of the Boost Timer library.
|
inline |
|
inline |
Return the amount of time that has elapsed since the last construction or reset, in seconds.
|
inline |
Return an estimate of the maximum possible value of elapsed().
Note that this routine may return too high a value on some systems.
References boost::accumulators::extract::max.
|
inline |
Returns the minimum non-zero value that elapsed()
may return.
This is the resolution of the timer.
|
inline |
|
static |
Determines whether the elapsed time values are global times or local processor times.