EBGeometry  1.0
Public Types | Public Member Functions | Protected Attributes | List of all members
EBGeometry::SimpleTimer Class Reference

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.
 

Detailed Description

Simple timer class used for local performance profiling. Does not include MPI capabilities and is therefore local to each rank.


The documentation for this class was generated from the following file: