openPMD-api
Public Types | Public Member Functions | List of all members
openPMD::benchmark::Timer Class Reference

The Timer class for profiling purpose. More...

#include <Timer.hpp>

Public Types

using Clock = std::chrono::system_clock
 
using TimePoint = std::chrono::time_point< Clock >
 

Public Member Functions

 Timer (const std::string &tag, int rank, TimePoint progStart)
 Simple Timer. More...
 

Detailed Description

The Timer class for profiling purpose.

Simple Timer that measures time consumption btw constructor and destructor Reports at rank 0 at the console, for immediate convenience

Constructor & Destructor Documentation

◆ Timer()

openPMD::benchmark::Timer::Timer ( const std::string &  tag,
int  rank,
TimePoint  progStart 
)
inline

Simple Timer.

Parameters
tagitem name to measure
rankMPI rank
progStarttime point at program start

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