TStopwatch Struct Reference

#include <TStopwatch.h>

Inheritance diagram for TStopwatch:

TObject TObject TMVA::Timer TMVA::Timer List of all members.

Public Member Functions

 TStopwatch ()
void Start (Bool_t reset=kTRUE)
void Stop ()
void Continue ()
Int_t Counter () const
Double_t RealTime ()
void Reset ()
void ResetCpuTime (Double_t time=0)
void ResetRealTime (Double_t time=0)
Double_t CpuTime ()
void Print (Option_t *option="") const
 TStopwatch ()
void Start (Bool_t reset=kTRUE)
void Stop ()
void Continue ()
Int_t Counter () const
Double_t RealTime ()
void Reset ()
void ResetCpuTime (Double_t time=0)
void ResetRealTime (Double_t time=0)
Double_t CpuTime ()
void Print (Option_t *option="") const
void Start ()
void Stop ()
void Reset ()
double RealTime ()
double CpuTime ()

Private Types

enum  EState
enum  EState

Static Private Member Functions

static Double_t GetRealTime ()
static Double_t GetCPUTime ()
static Double_t GetRealTime ()
static Double_t GetCPUTime ()

Private Attributes

Double_t fStartRealTime
Double_t fStopRealTime
Double_t fStartCpuTime
Double_t fStopCpuTime
Double_t fTotalCpuTime
Double_t fTotalRealTime
EState fState
Int_t fCounter

Detailed Description

Definition at line 30 of file TStopwatch.h.


Member Enumeration Documentation

enum TStopwatch::EState [private]

Definition at line 33 of file TStopwatch.h.

enum TStopwatch::EState [private]

Definition at line 33 of file TStopwatch.h.


Constructor & Destructor Documentation

TStopwatch::TStopwatch (  ) 

TStopwatch::TStopwatch (  ) 


Member Function Documentation

Double_t TStopwatch::GetRealTime (  )  [static, private]

Definition at line 139 of file TStopwatch.cxx.

References gTicks.

Referenced by GetCPUTime(), Start(), and Stop().

Double_t TStopwatch::GetCPUTime (  )  [static, private]

Definition at line 158 of file TStopwatch.cxx.

References DWORD, TObject::Error(), GetRealTime(), gTicks, HANDLE, int, and TRUE.

Referenced by Start(), and Stop().

void TStopwatch::Start ( Bool_t  reset = kTRUE  ) 

Definition at line 55 of file TStopwatch.cxx.

References fCounter, fStartCpuTime, fStartRealTime, fState, fTotalCpuTime, fTotalRealTime, GetCPUTime(), GetRealTime(), kRunning, and kUndefined.

Referenced by TMVA::ApplicationCreateCombinedTree(), bill(), billr(), billtr(), billtw(), billw(), TGeoChecker::CheckBoundaryErrors(), TGeoChecker::CheckGeometryFull(), TGeoNode::CheckOverlaps(), TGeoChecker::CheckVoxels(), ClassImp(), TFile::Cp(), TGLViewer::DoDraw(), DoFit(), doFit(), TXProofMgr::GetFile(), TFTP::GetFile(), TProofServ::GetNextPacket(), TProofServ::HandleSocketInput(), TRint::HandleTermInput(), TMonaLisaWriter::Init(), initMatrix(), RooMCIntegrator::integral(), integral_MC(), integral_num(), main(), MemStatLeak(), minexam(), piRandom(), RooMinimizer::profileStart(), RooMinuit::profileStart(), pserv(), PT_H1DataSet(), PT_H1FileCollection(), PT_H1Http(), PT_H1MultiDataSet(), PT_H1MultiDSetEntryList(), PT_Simple(), TXProofMgr::PutFile(), TFTP::PutFile(), TGeoPainter::Raytrace(), read(), readSMatrix(), readSMatrixSym(), readTMatrix(), readTMatrixSym(), readTrackD(), readTrackD32(), TQueryResultManager::ResetTime(), TProofServ::RestartComputeTime(), rs401d_FeldmanCousins(), runTest(), RunTests(), seism(), TMonaLisaWriter::SendProcessingStatus(), sqlfilldb(), sqlselect(), TGLAutoRotator::Start(), TBenchmark::Start(), stressFit(), stressRooFit(), TGeoChecker::Test(), Test_TBtree(), VectorTest< Dim >::testAddition(), VectorTest< Dim >::testAddition2(), VectorTest< Dim >::testAddition3(), testAll(), Tester::TestAllocation(), VectorTest< Dim >::testAnalysis(), VectorTest< Dim >::testAnalysis2(), VectorTest< Dim >::testBoost1(), VectorTest< Dim >::testBoost2(), VectorTest< Dim >::testBoost_TL(), VectorTest< Dim >::testBoostX1(), VectorTest< Dim >::testBoostX2(), Tester::TestByIndex(), Tester::TestByName(), VectorTest< Dim >::testConversion(), VectorTest< Dim >::testCreate(), VectorTest< Dim >::testCreate2(), VectorTest< Dim >::testDeltaPhi(), VectorTest< Dim >::testDeltaR(), VectorTest< Dim >::testDotProduct(), testDummy(), testIntegPerf(), VectorTest< Dim >::testMatVec(), VectorTest< Dim >::testOperations(), VectorTest< Dim >::testPointAddition(), testRootFinder(), VectorTest< Dim >::testRotation(), VectorTest< Dim >::testScale(), VectorTest< Dim >::testScale2(), TestSpeed(), TestTimer::TestTimer(), VectorTest< Dim >::testTransform(), VectorTest< Dim >::testTransformProd(), VectorTest< Dim >::testTransformProd2(), VectorTest< Dim >::testTransformProd3(), VectorTest< Dim >::testTranslation(), VectorTest< Dim >::testVectorAddition(), Timer::Timer(), ROOT::Math::test::Timer::Timer(), test::Timer::Timer(), TGeoChecker::TimingPerVolume(), TMVAClassificationApplication(), TMVAClassificationCategoryApplication(), TMVAMulticlassApplication(), TMVARegressionApplication(), TTreePerfStats::TTreePerfStats(), RooMCIntegrator::vegas(), write(), writeCArray(), writeSMatrix(), writeSMatrixSym(), writeTMatrix(), writeTMatrixSym(), writeTrack(), writeTrackD(), and writeTrackD32().

void TStopwatch::Stop (  ) 

Definition at line 77 of file TStopwatch.cxx.

References fStartCpuTime, fStartRealTime, fState, fStopCpuTime, fStopRealTime, fTotalCpuTime, fTotalRealTime, GetCPUTime(), GetRealTime(), kRunning, and kStopped.

Referenced by TMVA::ApplicationCreateCombinedTree(), TEcho::Benchmark(), bill(), billr(), billtr(), billtw(), billw(), TGeoChecker::CheckBoundaryErrors(), TGeoChecker::CheckGeometryFull(), TFile::Cp(), TFile::CpProgress(), TXProofMgr::CpProgress(), CpuTime(), DoFit(), doFit(), TQtClientFilter::eventFilter(), TXProofMgr::GetFile(), TProofServ::GetNextPacket(), initMatrix(), integral_MC(), integral_num(), integral_TF1(), main(), MemStatLeak(), TGeoChecker::OpProgress(), piRandom(), RooMinuit::profileStop(), RooMinimizer::profileStop(), pserv(), PT_H1DataSet(), PT_H1FileCollection(), PT_H1Http(), PT_H1MultiDataSet(), PT_H1MultiDSetEntryList(), PT_Simple(), TXProofMgr::PutFile(), TGeoPainter::Raytrace(), read(), readSMatrix(), readSMatrixSym(), readTMatrix(), readTMatrixSym(), readTrackD(), readTrackD32(), RealTime(), ResetCpuTime(), ResetRealTime(), TProofServ::RestartComputeTime(), rs401d_FeldmanCousins(), runTest(), sqlfilldb(), sqlselect(), TGLAutoRotator::Stop(), TBenchmark::Stop(), TGeoChecker::Test(), VectorTest< Dim >::testAddition(), VectorTest< Dim >::testAddition2(), VectorTest< Dim >::testAddition3(), Tester::TestAllocation(), VectorTest< Dim >::testAnalysis(), VectorTest< Dim >::testAnalysis2(), VectorTest< Dim >::testBoost1(), VectorTest< Dim >::testBoost2(), VectorTest< Dim >::testBoost_TL(), VectorTest< Dim >::testBoostX1(), VectorTest< Dim >::testBoostX2(), Tester::TestByIndex(), Tester::TestByName(), VectorTest< Dim >::testConversion(), VectorTest< Dim >::testCreate(), VectorTest< Dim >::testCreate2(), VectorTest< Dim >::testDeltaPhi(), VectorTest< Dim >::testDeltaR(), VectorTest< Dim >::testDotProduct(), testDummy(), testIntegPerf(), VectorTest< Dim >::testMatVec(), VectorTest< Dim >::testOperations(), VectorTest< Dim >::testPointAddition(), testRootFinder(), VectorTest< Dim >::testRotation(), VectorTest< Dim >::testScale(), VectorTest< Dim >::testScale2(), TestSpeed(), VectorTest< Dim >::testTransform(), VectorTest< Dim >::testTransformProd(), VectorTest< Dim >::testTransformProd2(), VectorTest< Dim >::testTransformProd3(), VectorTest< Dim >::testTranslation(), VectorTest< Dim >::testVectorAddition(), TGLAutoRotator::Timeout(), TGeoChecker::TimingPerVolume(), TMVAClassificationApplication(), TMVAClassificationCategoryApplication(), TMVAMulticlassApplication(), TMVARegressionApplication(), write(), writeCArray(), writeSMatrix(), writeSMatrixSym(), writeTMatrix(), writeTMatrixSym(), writeTrack(), writeTrackD(), writeTrackD32(), TestTimer::~TestTimer(), Timer::~Timer(), test::Timer::~Timer(), and ROOT::Math::test::Timer::~Timer().

void TStopwatch::Continue (  ) 

Definition at line 92 of file TStopwatch.cxx.

References TObject::Error(), fStartCpuTime, fStartRealTime, fState, fStopCpuTime, fStopRealTime, fTotalCpuTime, fTotalRealTime, kRunning, kStopped, and kUndefined.

Referenced by TFile::CpProgress(), TXProofMgr::CpProgress(), dnd_playback(), fitpanel_playback(), TPacketizerFile::GetCurrentTime(), TPacketizerUnit::GetCurrentTime(), graph_edit_playback(), guitest_playback(), TMonaLisaWriter::Init(), main(), mditest_playback(), TGeoChecker::OpProgress(), TMonaLisaWriter::SendFileCheckpoint(), TMonaLisaWriter::SendFileCloseEvent(), TMonaLisaWriter::SendFileOpenProgress(), TMonaLisaWriter::SendProcessingProgress(), TBenchmark::Start(), and TGLAutoRotator::Timeout().

Int_t TStopwatch::Counter (  )  const [inline]

Definition at line 52 of file TStopwatch.h.

References fCounter.

Referenced by TProofServ::GetNextPacket(), and Print().

Double_t TStopwatch::RealTime (  ) 

Definition at line 109 of file TStopwatch.cxx.

References TObject::Error(), fState, fTotalRealTime, kRunning, kUndefined, and Stop().

Referenced by TEcho::Benchmark(), bill(), billr(), billtr(), billtw(), billw(), TGeoChecker::CheckBoundaryErrors(), TFile::CpProgress(), TXProofMgr::CpProgress(), dnd_playback(), DoFit(), doFit(), TMVA::Timer::ElapsedSeconds(), TTreePerfStats::Finish(), fitpanel_playback(), TPacketizerFile::GetCurrentTime(), TPacketizerUnit::GetCurrentTime(), TFTP::GetFile(), TProofServ::GetNextPacket(), TQueryResultManager::GetRealTime(), graph_edit_playback(), guitest_playback(), TProofServ::HandleSocketInput(), TMonaLisaWriter::Init(), initMatrix(), integral_MC(), integral_num(), integral_TF1(), main(), mditest_playback(), TGeoChecker::OpProgress(), piRandom(), VectorTest< Dim >::print(), Print(), printStats(), ROOT::Math::test::printTime(), printTime(), test::printTime(), pserv(), PT_H1DataSet(), PT_H1FileCollection(), PT_H1Http(), PT_H1MultiDataSet(), PT_H1MultiDSetEntryList(), PT_Simple(), TFTP::PutFile(), read(), readSMatrix(), readSMatrixSym(), readTMatrix(), readTMatrixSym(), readTrackD(), readTrackD32(), TProofServ::RestartComputeTime(), runTest(), seism(), TMonaLisaWriter::SendFileCheckpoint(), TMonaLisaWriter::SendFileCloseEvent(), TMonaLisaWriter::SendFileOpenProgress(), TMonaLisaWriter::SendProcessingProgress(), sqlfilldb(), sqlselect(), TBenchmark::Stop(), VectorTest< Dim >::testAddition(), VectorTest< Dim >::testAddition2(), VectorTest< Dim >::testAddition3(), VectorTest< Dim >::testAnalysis(), VectorTest< Dim >::testAnalysis2(), VectorTest< Dim >::testBoost1(), VectorTest< Dim >::testBoost2(), VectorTest< Dim >::testBoost_TL(), VectorTest< Dim >::testBoostX1(), VectorTest< Dim >::testBoostX2(), VectorTest< Dim >::testConversion(), VectorTest< Dim >::testCreate(), VectorTest< Dim >::testCreate2(), VectorTest< Dim >::testDeltaPhi(), VectorTest< Dim >::testDeltaR(), VectorTest< Dim >::testDotProduct(), testDummy(), testIntegPerf(), VectorTest< Dim >::testMatVec(), VectorTest< Dim >::testOperations(), VectorTest< Dim >::testPointAddition(), VectorTest< Dim >::testRotation(), VectorTest< Dim >::testScale(), VectorTest< Dim >::testScale2(), VectorTest< Dim >::testTransform(), VectorTest< Dim >::testTransformProd(), VectorTest< Dim >::testTransformProd2(), VectorTest< Dim >::testTransformProd3(), VectorTest< Dim >::testTranslation(), VectorTest< Dim >::testVectorAddition(), Timer::Time(), TGLAutoRotator::Timeout(), RooMCIntegrator::vegas(), write(), writeCArray(), writeSMatrix(), writeSMatrixSym(), writeTMatrix(), writeTMatrixSym(), writeTrack(), writeTrackD(), writeTrackD32(), TestTimer::~TestTimer(), test::Timer::~Timer(), and ROOT::Math::test::Timer::~Timer().

void TStopwatch::Reset ( void   )  [inline]

Definition at line 54 of file TStopwatch.h.

References ResetCpuTime(), and ResetRealTime().

Referenced by annotation(), TGeoChecker::CheckBoundaryErrors(), TGeoChecker::CheckGeometryFull(), TFile::Cp(), TXProofMgr::GetFile(), TTreeViewer::HandleTimer(), TXProofMgr::PutFile(), runTest(), TBenchmark::Start(), TGeoChecker::Test(), testRootFinder(), and TGeoChecker::TimingPerVolume().

void TStopwatch::ResetCpuTime ( Double_t  time = 0  )  [inline]

Definition at line 55 of file TStopwatch.h.

References fTotalCpuTime, and Stop().

Referenced by Reset().

void TStopwatch::ResetRealTime ( Double_t  time = 0  )  [inline]

Definition at line 56 of file TStopwatch.h.

References fTotalRealTime, and Stop().

Referenced by Reset().

Double_t TStopwatch::CpuTime (  ) 

Definition at line 124 of file TStopwatch.cxx.

References TObject::Error(), fState, fTotalCpuTime, kRunning, kUndefined, and Stop().

Referenced by bill(), billr(), billtr(), billtw(), billw(), TGeoChecker::CheckBoundaryErrors(), TGeoChecker::CheckGeometryFull(), TGeoChecker::CheckVoxels(), DoFit(), doFit(), TTreePerfStats::Finish(), TQueryResultManager::GetCpuTime(), TProofServ::GetNextPacket(), TProofServ::HandleSocketInput(), initMatrix(), main(), minexam(), piRandom(), Print(), printTime(), pserv(), read(), ReadRef(), readSMatrix(), readSMatrixSym(), readTMatrix(), readTMatrixSym(), readTrackD(), readTrackD32(), runTest(), seism(), TMonaLisaWriter::SendProcessingProgress(), sqlfilldb(), sqlselect(), TBenchmark::Stop(), stressRooFit(), testAll(), Tester::TestAllocation(), Tester::TestByIndex(), Tester::TestByName(), testDummy(), TestSpeed(), TGeoChecker::TimingPerVolume(), write(), writeCArray(), writeSMatrix(), writeSMatrixSym(), writeTMatrix(), writeTMatrixSym(), writeTrack(), writeTrackD(), writeTrackD32(), and TestTimer::~TestTimer().

void TStopwatch::Print ( Option_t option = ""  )  const [virtual]

Reimplemented from TObject.

Definition at line 216 of file TStopwatch.cxx.

References Counter(), CpuTime(), min, Printf(), and RealTime().

Referenced by TMVA::ApplicationCreateCombinedTree(), TRint::HandleTermInput(), main(), MemStatLeak(), RooMinuit::profileStop(), RooMinimizer::profileStop(), rs401d_FeldmanCousins(), TGeoChecker::Test(), Test_TBtree(), VectorTest< Dim >::testWrite(), TMVAClassificationApplication(), TMVAClassificationCategoryApplication(), TMVAMulticlassApplication(), and TMVARegressionApplication().

static Double_t TStopwatch::GetRealTime (  )  [static, private]

static Double_t TStopwatch::GetCPUTime (  )  [static, private]

void TStopwatch::Start ( Bool_t  reset = kTRUE  ) 

void TStopwatch::Stop (  ) 

void TStopwatch::Continue (  ) 

Int_t TStopwatch::Counter (  )  const [inline]

Definition at line 52 of file TStopwatch.h.

References fCounter.

Double_t TStopwatch::RealTime (  ) 

void TStopwatch::Reset ( void   )  [inline]

Definition at line 54 of file TStopwatch.h.

References ResetCpuTime(), and ResetRealTime().

void TStopwatch::ResetCpuTime ( Double_t  time = 0  )  [inline]

Definition at line 55 of file TStopwatch.h.

References fTotalCpuTime, and Stop().

void TStopwatch::ResetRealTime ( Double_t  time = 0  )  [inline]

Definition at line 56 of file TStopwatch.h.

References fTotalRealTime, and Stop().

Double_t TStopwatch::CpuTime (  ) 

void TStopwatch::Print ( Option_t option = ""  )  const [virtual]

Reimplemented from TObject.

void TStopwatch::Start (  )  [inline]

Definition at line 10 of file testRootFinder.cxx.

Referenced by TMVA::Timer::ElapsedSeconds(), and TMVA::Timer::Reset().

void TStopwatch::Stop (  )  [inline]

Definition at line 11 of file testRootFinder.cxx.

void TStopwatch::Reset ( void   )  [inline]

Definition at line 12 of file testRootFinder.cxx.

double TStopwatch::RealTime (  )  [inline]

Definition at line 13 of file testRootFinder.cxx.

double TStopwatch::CpuTime (  )  [inline]

Definition at line 14 of file testRootFinder.cxx.


Member Data Documentation

Double_t TStopwatch::fStartRealTime [private]

Definition at line 35 of file TStopwatch.h.

Referenced by Continue(), Start(), and Stop().

Double_t TStopwatch::fStopRealTime [private]

Definition at line 36 of file TStopwatch.h.

Referenced by Continue(), and Stop().

Double_t TStopwatch::fStartCpuTime [private]

Definition at line 37 of file TStopwatch.h.

Referenced by Continue(), Start(), and Stop().

Double_t TStopwatch::fStopCpuTime [private]

Definition at line 38 of file TStopwatch.h.

Referenced by Continue(), and Stop().

Double_t TStopwatch::fTotalCpuTime [private]

Definition at line 39 of file TStopwatch.h.

Referenced by Continue(), CpuTime(), ResetCpuTime(), Start(), and Stop().

Double_t TStopwatch::fTotalRealTime [private]

Definition at line 40 of file TStopwatch.h.

Referenced by Continue(), RealTime(), ResetRealTime(), Start(), and Stop().

EState TStopwatch::fState [private]

Definition at line 41 of file TStopwatch.h.

Referenced by Continue(), CpuTime(), RealTime(), Start(), and Stop().

Int_t TStopwatch::fCounter [private]

Definition at line 42 of file TStopwatch.h.

Referenced by Counter(), and Start().


The documentation for this struct was generated from the following files:
Generated on Tue Jul 5 16:47:05 2011 for ROOT_528-00b_version by  doxygen 1.5.1