Bayeux  3.4.1
Core Foundation library for SuperNEMO
Public Member Functions | Static Public Member Functions | List of all members
datatools::computing_time Struct Reference

A class that compute time statistics. More...

#include <bayeux/datatools/time_tools.h>

Inheritance diagram for datatools::computing_time:
datatools::i_tree_dumpable

Public Member Functions

 computing_time ()
 Constructor. More...
 
virtual ~computing_time ()
 Destructor. More...
 
bool is_stopped () const
 
bool is_started () const
 
size_t get_counts () const
 
double get_last_elapsed_time () const
 
double get_total_time () const
 
double get_sum_time () const
 
double get_sum2_time () const
 
double get_min_time () const
 
double get_max_time () const
 
double get_mean_time () const
 
double get_sigma_time () const
 
void start ()
 
void stop ()
 
void pause ()
 
void resume ()
 
void reset ()
 
virtual void tree_dump (std::ostream &out_=std::clog, const std::string &title_="", const std::string &indent_="", bool inherit_=false) const
 Main old interface method for printing. More...
 
- Public Member Functions inherited from datatools::i_tree_dumpable
 i_tree_dumpable ()
 Constructor. More...
 
virtual ~i_tree_dumpable ()
 Destructor. More...
 
virtual void print_tree (std::ostream &out_=std::clog, const boost::property_tree::ptree &options_=empty_options()) const
 Main new interface method for printing. More...
 
void print_tree_json (std::ostream &out_=std::clog, const std::string &json_options_="") const
 Printing with jsonized options. More...
 
void print_tree_json (std::ostream &out_=std::clog, const char *json_options_=nullptr) const
 Printing with jsonized options. More...
 
void tree_dump_id (const int out_type_=OSTREAM_CLOG, const std::string &title_="", const std::string &indent_="", const bool inherit_=false) const
 
void tree_print_id (const int out_type_=OSTREAM_CLOG, const std::string &title_="") const
 
void smart_print_id (const int out_type_=OSTREAM_CLOG, const std::string &title_="", const std::string &indent_="") const
 

Static Public Member Functions

static double system_dead_time ()
 
static bool g_timeval_subtract (const timeval &stop_, const timeval &start_, timeval &result_)
 
static double compute_system_dead_time ()
 
- Static Public Member Functions inherited from datatools::i_tree_dumpable
static const boost::property_tree::ptree & empty_options ()
 
static boost::property_tree::ptree make_base_print_options (const std::string &title_, const std::string &indent_="", const bool inherit_=false)
 
static std::ostream & last_skip_tag (std::ostream &out_)
 
static std::ostream & skip_tag (std::ostream &out_)
 
static std::ostream & last_tag (std::ostream &out_)
 
static std::ostream & tag (std::ostream &out_)
 

Additional Inherited Members

- Public Types inherited from datatools::i_tree_dumpable
enum  ostream_type { OSTREAM_COUT = 1, OSTREAM_CERR = 2, OSTREAM_CLOG = 3 }
 Enumeration for standard output streams. More...
 

Detailed Description

A class that compute time statistics.

!

Constructor & Destructor Documentation

◆ computing_time()

datatools::computing_time::computing_time ( )

Constructor.

◆ ~computing_time()

virtual datatools::computing_time::~computing_time ( )
virtual

Destructor.

Member Function Documentation

◆ compute_system_dead_time()

static double datatools::computing_time::compute_system_dead_time ( )
static

◆ g_timeval_subtract()

static bool datatools::computing_time::g_timeval_subtract ( const timeval &  stop_,
const timeval &  start_,
timeval &  result_ 
)
static

◆ get_counts()

size_t datatools::computing_time::get_counts ( ) const

◆ get_last_elapsed_time()

double datatools::computing_time::get_last_elapsed_time ( ) const

◆ get_max_time()

double datatools::computing_time::get_max_time ( ) const

◆ get_mean_time()

double datatools::computing_time::get_mean_time ( ) const

◆ get_min_time()

double datatools::computing_time::get_min_time ( ) const

◆ get_sigma_time()

double datatools::computing_time::get_sigma_time ( ) const

◆ get_sum2_time()

double datatools::computing_time::get_sum2_time ( ) const

◆ get_sum_time()

double datatools::computing_time::get_sum_time ( ) const

◆ get_total_time()

double datatools::computing_time::get_total_time ( ) const

◆ is_started()

bool datatools::computing_time::is_started ( ) const

◆ is_stopped()

bool datatools::computing_time::is_stopped ( ) const

◆ pause()

void datatools::computing_time::pause ( )

◆ reset()

void datatools::computing_time::reset ( )

◆ resume()

void datatools::computing_time::resume ( )

◆ start()

void datatools::computing_time::start ( )

◆ stop()

void datatools::computing_time::stop ( )

◆ system_dead_time()

static double datatools::computing_time::system_dead_time ( )
static

◆ tree_dump()

virtual void datatools::computing_time::tree_dump ( std::ostream &  out_ = std::clog,
const std::string &  title_ = "",
const std::string &  indent_ = "",
bool  inherit_ = false 
) const
virtual

Main old interface method for printing.

Reimplemented from datatools::i_tree_dumpable.


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