Geant4  10.00.p01
G4Timer Class Reference

#include <G4Timer.hh>

Public Member Functions

 G4Timer ()
 
void Start ()
 
void Stop ()
 
G4bool IsValid () const
 
const char * GetClockTime () const
 
G4double GetRealElapsed () const
 
G4double GetSystemElapsed () const
 
G4double GetUserElapsed () const
 

Private Attributes

G4bool fValidTimes
 
clock_t fStartRealTime
 
clock_t fEndRealTime
 
tms fStartTimes
 
tms fEndTimes
 

Detailed Description

Definition at line 110 of file G4Timer.hh.

Constructor & Destructor Documentation

G4Timer::G4Timer ( )

Definition at line 102 of file G4Timer.cc.

Member Function Documentation

const char* G4Timer::GetClockTime ( ) const
inline
G4double G4Timer::GetRealElapsed ( ) const

Definition at line 107 of file G4Timer.cc.

References FatalException, fEndRealTime, fStartRealTime, fValidTimes, and G4Exception().

Referenced by RMC01AnalysisManager::EndOfEvent(), ExGflashEventAction::EndOfEventAction(), export_G4Timer(), main(), and operator<<().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4double G4Timer::GetSystemElapsed ( ) const

Definition at line 119 of file G4Timer.cc.

References FatalException, fEndTimes, fStartTimes, fValidTimes, and G4Exception().

Referenced by G4ConvergenceTester::AddScore(), G4GeometryManager::BuildOptimisations(), ExGflashEventAction::EndOfEventAction(), export_G4Timer(), main(), operator<<(), and G4RunManager::ReOptimize().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4double G4Timer::GetUserElapsed ( ) const

Definition at line 130 of file G4Timer.cc.

References FatalException, fEndTimes, fStartTimes, fValidTimes, and G4Exception().

Referenced by G4ConvergenceTester::AddScore(), G4VXTRenergyLoss::BuildAngleForEnergyBank(), G4VXTRenergyLoss::BuildAngleTable(), G4VXTRenergyLoss::BuildEnergyTable(), G4VXTRenergyLoss::BuildGlobalAngleTable(), G4GeometryManager::BuildOptimisations(), ExGflashEventAction::EndOfEventAction(), CML2RunAction::EndOfRunAction(), export_G4Timer(), main(), operator<<(), G4RunManager::ReOptimize(), F03PhysicsList::SetCuts(), F01PhysicsList::SetCuts(), and F02PhysicsList::SetCuts().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4bool G4Timer::IsValid ( ) const
inline

Referenced by export_G4Timer(), and operator<<().

+ Here is the caller graph for this function:

Member Data Documentation

clock_t G4Timer::fEndRealTime
private

Definition at line 127 of file G4Timer.hh.

Referenced by GetRealElapsed().

tms G4Timer::fEndTimes
private

Definition at line 128 of file G4Timer.hh.

Referenced by GetSystemElapsed(), and GetUserElapsed().

clock_t G4Timer::fStartRealTime
private

Definition at line 127 of file G4Timer.hh.

Referenced by GetRealElapsed().

tms G4Timer::fStartTimes
private

Definition at line 128 of file G4Timer.hh.

Referenced by GetSystemElapsed(), and GetUserElapsed().

G4bool G4Timer::fValidTimes
private

Definition at line 126 of file G4Timer.hh.

Referenced by GetRealElapsed(), GetSystemElapsed(), and GetUserElapsed().


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