library: libTMVA #include "Timer.h" |
TMVA::Timer
class description - header file - source file - inheritance tree (.pdf)
private:
Double_t ElapsedSeconds()
TString SecToText(Double_t, Bool_t)
public:
Timer(Bool_t colourfulOutput = kTRUE)
Timer(Int_t ncounts, TString prefix = , Bool_t colourfulOutput = kTRUE)
Timer(const TMVA::Timer&)
virtual ~Timer()
static TClass* Class()
void DrawProgressBar(Int_t icounts)
TString GetElapsedTime(Bool_t Scientific = kTRUE)
TString GetLeftTime(Int_t icounts)
void Init(Int_t ncounts)
virtual TClass* IsA() const
TMVA::Timer& operator=(const TMVA::Timer&)
void Reset()
virtual void ShowMembers(TMemberInspector& insp, char* parent)
virtual void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
private:
Int_t fNcounts reference number of "counts"
TString fPrefix prefix for outputs
Bool_t fColourfulOutput flag for use of colors
static const TString fgClassName used for output
static const Int_t fgNbins number of bins in progress bar
_______________________________________________________________________
Timing information for training and evaluation of MVA methods
Usage:
TMVA::Timer timer( Nloops, "MyClassName" );
for (Int_t i=0; i<Nloops; i++) {
... // some code
// now, print progress bar:
timer.DrawProgressBar( i );
// **OR** text output of left time (never both !)
cout << " time left: " << timer.GetLeftTime( i ) << endl;
}
cout << "MyClassName" << ": elapsed time: " << timer.GetElapsedTime()
<< endl;
Remark: in batch mode, the progress bar is quite ugly; you may
want to use the text output then
_______________________________________________________________________
Timer( Int_t ncounts, TString prefix, Bool_t colourfulOutput )
standard constructor: ncounts gives the total number of counts that
the loop will iterate through. At each call of the timer, the current
number of counts is provided by the user, so that the timer can obtain
the due time from linearly interpolating the spent time.
void Init( Int_t ncounts )
timer initialisation
void Reset( void )
resets timer
Last update: Tue Jul 11 11:56:40 2006
Copyright (c) 2005: *
ROOT page - Class index - Class Hierarchy - Top of the page
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.