Simple timer class used for local performance profiling.
More...
#include <EBGeometry_SimpleTimer.hpp>
|
|
using | Clock = std::chrono::steady_clock |
| | Clock alias.
|
| |
|
using | TimePoint = Clock::time_point |
| | Time point alias.
|
| |
|
|
| SimpleTimer () noexcept |
| | Constructor. Immediately calls start() followed by stop() to initialize 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.
|
| |
Simple timer class used for local performance profiling.
◆ seconds()
| double EBGeometry::SimpleTimer::seconds |
( |
| ) |
const |
|
inlinenoexcept |
Compute the elapsed time between the last start() and stop() calls.
- Returns
- Elapsed time in seconds as a double.
◆ start()
| void EBGeometry::SimpleTimer::start |
( |
| ) |
|
|
inlinenoexcept |
Start timing.
- Note
- Calling this resets timers that are already running.
The documentation for this class was generated from the following file: