DFT-EFE
 
Loading...
Searching...
No Matches
dftefe::utils::Timer Class Reference

#include <Timer.h>

Collaboration diagram for dftefe::utils::Timer:

Classes

struct  ClockMeasurements
 

Public Types

using wallClockType = std::chrono::high_resolution_clock
 

Public Member Functions

 Timer (const utils::mpi::MPIComm mpiComm=utils::mpi::MPICommSelf, const bool syncLapTimes=false)
 
const utils::mpi::MinMaxAvg< double > & getLastLapWallTimeData () const
 
const utils::mpi::MinMaxAvg< double > & getAccumulatedWallTimeData () const
 
void printLastLapWallTimeData (const ConditionalOStream &stream=ConditionalOStream(std::cout)) const
 
void printAccumulatedWallTimeData (const ConditionalOStream &stream=ConditionalOStream(std::cout)) const
 
void start ()
 
void stop ()
 
void reset ()
 
void restart ()
 
double wallTime () const
 
double lastWallTime () const
 

Private Attributes

ClockMeasurements< wallClockTyped_wallTimes
 
bool d_running
 
utils::mpi::MPIComm d_mpiComm
 
bool d_syncLapTimes
 
utils::mpi::MinMaxAvg< double > d_lastLapWallTimeData
 
utils::mpi::MinMaxAvg< double > d_accumulatedWallTimeData
 

Member Typedef Documentation

◆ wallClockType

using dftefe::utils::Timer::wallClockType = std::chrono::high_resolution_clock

Constructor & Destructor Documentation

◆ Timer()

dftefe::utils::Timer::Timer ( const utils::mpi::MPIComm  mpiComm = utils::mpi::MPICommSelf,
const bool  syncLapTimes = false 
)
Here is the call graph for this function:

Member Function Documentation

◆ getAccumulatedWallTimeData()

const utils::mpi::MinMaxAvg< double > & dftefe::utils::Timer::getAccumulatedWallTimeData ( ) const

◆ getLastLapWallTimeData()

const utils::mpi::MinMaxAvg< double > & dftefe::utils::Timer::getLastLapWallTimeData ( ) const

◆ lastWallTime()

double dftefe::utils::Timer::lastWallTime ( ) const
Here is the call graph for this function:

◆ printAccumulatedWallTimeData()

void dftefe::utils::Timer::printAccumulatedWallTimeData ( const ConditionalOStream stream = ConditionalOStream(std::cout)) const

◆ printLastLapWallTimeData()

void dftefe::utils::Timer::printLastLapWallTimeData ( const ConditionalOStream stream = ConditionalOStream(std::cout)) const

◆ reset()

void dftefe::utils::Timer::reset ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ restart()

void dftefe::utils::Timer::restart ( )

◆ start()

void dftefe::utils::Timer::start ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ stop()

void dftefe::utils::Timer::stop ( )
Here is the call graph for this function:

◆ wallTime()

double dftefe::utils::Timer::wallTime ( ) const
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ d_accumulatedWallTimeData

utils::mpi::MinMaxAvg<double> dftefe::utils::Timer::d_accumulatedWallTimeData
private

◆ d_lastLapWallTimeData

utils::mpi::MinMaxAvg<double> dftefe::utils::Timer::d_lastLapWallTimeData
private

◆ d_mpiComm

utils::mpi::MPIComm dftefe::utils::Timer::d_mpiComm
private

◆ d_running

bool dftefe::utils::Timer::d_running
private

◆ d_syncLapTimes

bool dftefe::utils::Timer::d_syncLapTimes
private

◆ d_wallTimes

ClockMeasurements<wallClockType> dftefe::utils::Timer::d_wallTimes
private

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