MADNESS 0.10.1
madness::CCTimer Struct Reference

Timer Structure. More...

#include <CCStructures.h>

Collaboration diagram for madness::CCTimer:

Public Member Functions

 CCTimer (World &world, std::string msg)
std::pair< double, double > current_time (bool printout=false)
double get_cpu_time_diff () const
double get_wall_time_diff () const
void info (const bool debug=true, const double norm=12345.6789)
 print out information about the passed time since the CC_TIMER object was created
void print ()
void print () const
void print (const std::pair< double, double > &times) const
double reset ()
CCTimer start ()
CCTimer stop ()
void update_time ()

Public Attributes

double end_cpu
double end_wall
std::string operation
double start_cpu
double start_wall
double time_cpu
double time_wall
World & world

Detailed Description

Timer Structure.

Constructor & Destructor Documentation

◆ CCTimer()

madness::CCTimer::CCTimer ( World & world,
std::string msg )
inline

TDA_TIMER constructor

Parameters
[in]worldthe world
[in]msga string that contains the desired printout when info function is called

References madness::cpu_time(), end_cpu, end_wall, operation, start_cpu, start_wall, time_cpu, time_wall, madness::wall_time(), and world.

Referenced by start(), and stop().

Member Function Documentation

◆ current_time()

std::pair< double, double > madness::CCTimer::current_time ( bool printout = false)
inline

References stop(), time_cpu, and time_wall.

Referenced by madness::CC2::solve_lrcc2().

◆ get_cpu_time_diff()

double madness::CCTimer::get_cpu_time_diff ( ) const
inline

References end_cpu.

◆ get_wall_time_diff()

double madness::CCTimer::get_wall_time_diff ( ) const
inline

References end_wall.

◆ info()

◆ print() [1/3]

◆ print() [2/3]

void madness::CCTimer::print ( ) const
inline

References print(), time_cpu, and time_wall.

◆ print() [3/3]

void madness::CCTimer::print ( const std::pair< double, double > & times) const
inline

References operation, and world.

◆ reset()

double madness::CCTimer::reset ( )
inline

References start(), stop(), and time_wall.

Referenced by madness::MP2::compute_gQf().

◆ start()

◆ stop()

◆ update_time()

void madness::CCTimer::update_time ( )
inline

Member Data Documentation

◆ end_cpu

double madness::CCTimer::end_cpu

Referenced by CCTimer(), get_cpu_time_diff(), and stop().

◆ end_wall

double madness::CCTimer::end_wall

Referenced by CCTimer(), get_wall_time_diff(), and stop().

◆ operation

std::string madness::CCTimer::operation

Referenced by CCTimer(), info(), and print().

◆ start_cpu

double madness::CCTimer::start_cpu

Referenced by CCTimer(), start(), stop(), and update_time().

◆ start_wall

double madness::CCTimer::start_wall

Referenced by CCTimer(), start(), stop(), and update_time().

◆ time_cpu

double madness::CCTimer::time_cpu

◆ time_wall

double madness::CCTimer::time_wall

◆ world

World& madness::CCTimer::world

Referenced by CCTimer(), info(), and print().


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