|
adamantine
|
#include <Timer.hh>
Public Member Functions | |
| Timer ()=default | |
| Timer (MPI_Comm communicator, std::string const §ion) | |
| void | start () |
| void | stop () |
| void | reset () |
| void | print () |
| boost::chrono::process_real_cpu_clock::duration | get_elapsed_time () |
Private Attributes | |
| MPI_Comm | _communicator |
| std::string | _section |
| boost::chrono::process_cpu_clock | _clock |
| boost::chrono::process_cpu_clock::time_point | _t_start |
| boost::chrono::process_cpu_clock::duration | _elapsed_time |
This class measures the time spend in a given section by the rank 0 process. This class does not use any MPI_Barrier to synchronize the timer among all the processors.
|
default |
Default constructor.
| adamantine::Timer::Timer | ( | MPI_Comm | communicator, |
| std::string const & | section | ||
| ) |
| boost::chrono::process_real_cpu_clock::duration adamantine::Timer::get_elapsed_time | ( | ) |
| void adamantine::Timer::print | ( | ) |
| void adamantine::Timer::reset | ( | ) |
| void adamantine::Timer::stop | ( | ) |
|
private |
|
private |