|
EBGeometry
Compact, header-only C++ library for fast evaluation of signed distance functions
|
Simple timer class used for local performance profiling. 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. Immediately calls start() followed by stop() to initialise both time points to the current instant, leaving the timer in a valid state with approximately zero elapsed time. | |
| ~SimpleTimer () noexcept=default | |
| Destructor. | |
| void | start () noexcept |
| Start timing. | |
| void | stop () noexcept |
| Stop timing. | |
| double | seconds () const noexcept |
| Compute the elapsed time between the last start() and stop() calls. | |
Protected Attributes | |
| TimePoint | m_start |
| Start time point. | |
| TimePoint | m_stop |
| Stop time point. | |
Simple timer class used for local performance profiling.
|
inlinenoexcept |
|
inlinenoexcept |
Start timing.