EBGeometry
1.0
|
Simple timer class used for local performance profiling. Does not include MPI capabilities and is therefore local to each rank. More...
#include <EBGeometry_SimpleTimer.hpp>
Public Types | |
using | Clock = std::chrono::steady_clock |
Clock alias. | |
using | TimePoint = Clock::time_point |
Time point alias. | |
Public Member Functions | |
SimpleTimer () noexcept | |
Constructor. | |
~SimpleTimer () noexcept=default | |
Destructor. | |
void | start () noexcept |
Start timing. | |
void | stop () noexcept |
Stop timing. | |
double | seconds () const noexcept |
Report result – prints result in seconds. | |
Protected Attributes | |
TimePoint | m_start |
Start point. | |
TimePoint | m_stop |
Stop point. | |
Simple timer class used for local performance profiling. Does not include MPI capabilities and is therefore local to each rank.