TMVA::Timer Class Reference

#include <Timer.h>

Inheritance diagram for TMVA::Timer:

TStopwatch TStopwatch TObject TObject TObject TObject List of all members.

Public Member Functions

 Timer (const char *prefix="", Bool_t colourfulOutput=kTRUE)
 Timer (Int_t ncounts, const char *prefix="", Bool_t colourfulOutput=kTRUE)
virtual ~Timer (void)
void Init (Int_t ncounts)
void Reset (void)
TString GetElapsedTime (Bool_t Scientific=kTRUE)
Double_t ElapsedSeconds (void)
TString GetLeftTime (Int_t icounts)
void DrawProgressBar (Int_t, const TString &comment="")
void DrawProgressBar (TString)
void DrawProgressBar (void)
 Timer (const char *prefix="", Bool_t colourfulOutput=kTRUE)
 Timer (Int_t ncounts, const char *prefix="", Bool_t colourfulOutput=kTRUE)
virtual ~Timer (void)
void Init (Int_t ncounts)
void Reset (void)
TString GetElapsedTime (Bool_t Scientific=kTRUE)
Double_t ElapsedSeconds (void)
TString GetLeftTime (Int_t icounts)
void DrawProgressBar (Int_t, const TString &comment="")
void DrawProgressBar (TString)
void DrawProgressBar (void)

Private Member Functions

TString SecToText (Double_t, Bool_t) const
MsgLoggerLog () const
TString SecToText (Double_t, Bool_t) const
MsgLoggerLog () const

Private Attributes

Int_t fNcounts
TString fPrefix
Bool_t fColourfulOutput
MsgLoggerfLogger
MsgLoggerfLogger

Static Private Attributes

static const TString fgClassName
static const Int_t fgNbins

Detailed Description

Definition at line 62 of file Timer.h.


Constructor & Destructor Documentation

TMVA::Timer::Timer ( const char *  prefix = "",
Bool_t  colourfulOutput = kTRUE 
)

Timer::Timer ( Int_t  ncounts,
const char *  prefix = "",
Bool_t  colourfulOutput = kTRUE 
)

Definition at line 83 of file Timer.cxx.

References Reset().

Timer::~Timer ( void   )  [virtual]

Definition at line 97 of file Timer.cxx.

References fLogger.

TMVA::Timer::Timer ( const char *  prefix = "",
Bool_t  colourfulOutput = kTRUE 
)

TMVA::Timer::Timer ( Int_t  ncounts,
const char *  prefix = "",
Bool_t  colourfulOutput = kTRUE 
)

virtual TMVA::Timer::~Timer ( void   )  [virtual]


Member Function Documentation

void Timer::Init ( Int_t  ncounts  ) 

Definition at line 103 of file Timer.cxx.

References fNcounts, and Reset().

Referenced by TMVA::PDEFoam::Grow().

void Timer::Reset ( void   ) 

Reimplemented from TStopwatch.

Definition at line 111 of file Timer.cxx.

References kTRUE, and TStopwatch::Start().

Referenced by Init(), and Timer().

TString Timer::GetElapsedTime ( Bool_t  Scientific = kTRUE  ) 

Definition at line 126 of file Timer.cxx.

References ElapsedSeconds(), and SecToText().

Referenced by TMVA::PDEFoam::OutputGrow(), TMVA::MethodBoost::Train(), TMVA::MethodSVM::Train(), and TMVA::MethodBase::TrainMethod().

Double_t Timer::ElapsedSeconds ( void   ) 

Definition at line 118 of file Timer.cxx.

References kFALSE, TStopwatch::RealTime(), and TStopwatch::Start().

Referenced by GetElapsedTime(), GetLeftTime(), and TMVA::MethodBase::TrainMethod().

TString Timer::GetLeftTime ( Int_t  icounts  ) 

Definition at line 133 of file Timer.cxx.

References ElapsedSeconds(), fNcounts, kFALSE, and SecToText().

Referenced by DrawProgressBar().

void Timer::DrawProgressBar ( Int_t  ,
const TString comment = "" 
)

Definition at line 172 of file Timer.cxx.

References TMVA::Tools::Color(), comment, DrawProgressBar(), fColourfulOutput, fgNbins, fLogger, flush, fNcounts, TMVA::gConfig(), GetLeftTime(), TMVA::MsgLogger::GetPrintedSource(), TMVA::gTools(), and i.

Referenced by TMVA::PDEFoam::OutputGrow(), and TMVA::MethodBoost::Train().

void Timer::DrawProgressBar ( TString   ) 

Definition at line 157 of file Timer.cxx.

References TMVA::Tools::Color(), fLogger, flush, TMVA::MsgLogger::GetPrintedSource(), and TMVA::gTools().

void Timer::DrawProgressBar ( void   ) 

Definition at line 144 of file Timer.cxx.

References fLogger, flush, fNcounts, and TMVA::MsgLogger::GetPrintedSource().

Referenced by DrawProgressBar().

TString Timer::SecToText ( Double_t  ,
Bool_t   
) const [private]

Definition at line 218 of file Timer.cxx.

References TMVA::Tools::Color(), fColourfulOutput, Form(), TMVA::gTools(), h, m, and out.

Referenced by GetElapsedTime(), and GetLeftTime().

MsgLogger& TMVA::Timer::Log (  )  const [inline, private]

Definition at line 94 of file Timer.h.

References fLogger.

void TMVA::Timer::Init ( Int_t  ncounts  ) 

void TMVA::Timer::Reset ( void   ) 

Reimplemented from TStopwatch.

TString TMVA::Timer::GetElapsedTime ( Bool_t  Scientific = kTRUE  ) 

Double_t TMVA::Timer::ElapsedSeconds ( void   ) 

TString TMVA::Timer::GetLeftTime ( Int_t  icounts  ) 

void TMVA::Timer::DrawProgressBar ( Int_t  ,
const TString comment = "" 
)

void TMVA::Timer::DrawProgressBar ( TString   ) 

void TMVA::Timer::DrawProgressBar ( void   ) 

TString TMVA::Timer::SecToText ( Double_t  ,
Bool_t   
) const [private]

MsgLogger& TMVA::Timer::Log (  )  const [inline, private]

Definition at line 94 of file Timer.h.

References fLogger.


Member Data Documentation

Int_t Timer::fNcounts [private]

Definition at line 86 of file Timer.h.

Referenced by DrawProgressBar(), GetLeftTime(), and Init().

TString Timer::fPrefix [private]

Definition at line 87 of file Timer.h.

Bool_t Timer::fColourfulOutput [private]

Definition at line 88 of file Timer.h.

Referenced by DrawProgressBar(), and SecToText().

const TString Timer::fgClassName [static, private]

Definition at line 90 of file Timer.h.

const Int_t Timer::fgNbins [static, private]

Definition at line 91 of file Timer.h.

Referenced by DrawProgressBar().

MsgLogger* TMVA::Timer::fLogger [mutable, private]

Definition at line 93 of file Timer.h.

Referenced by DrawProgressBar(), Log(), and ~Timer().

MsgLogger* TMVA::Timer::fLogger [mutable, private]

Definition at line 93 of file Timer.h.


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 17:01:45 2011 for ROOT_528-00b_version by  doxygen 1.5.1