MADNESS 0.10.1
Public Member Functions | Public Attributes | List of all members
madness::CCTimer Struct Reference

Timer Structure. More...

#include <CCStructures.h>

Collaboration diagram for madness::CCTimer:
Collaboration graph
[legend]

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
 
Worldworld
 

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

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()

void madness::CCTimer::info ( const bool  debug = true,
const double  norm = 12345.6789 
)

◆ print() [1/3]

void madness::CCTimer::print ( )
inline

◆ 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

◆ reset()

double madness::CCTimer::reset ( )
inline

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

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

◆ start()

CCTimer madness::CCTimer::start ( )
inline

◆ stop()

CCTimer madness::CCTimer::stop ( )
inline

◆ update_time()

void madness::CCTimer::update_time ( )
inline

Member Data Documentation

◆ end_cpu

double madness::CCTimer::end_cpu

Referenced by get_cpu_time_diff(), and stop().

◆ end_wall

double madness::CCTimer::end_wall

Referenced by get_wall_time_diff(), and stop().

◆ operation

std::string madness::CCTimer::operation

Referenced by info(), and print().

◆ start_cpu

double madness::CCTimer::start_cpu

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

◆ start_wall

double madness::CCTimer::start_wall

Referenced by 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 info(), and print().


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