Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4SliceTimer Class Reference

#include <G4SliceTimer.hh>

Public Member Functions

 G4SliceTimer ()
 
void Start ()
 
void Stop ()
 
void Clear ()
 
G4bool IsValid () const
 
G4double GetRealElapsed () const
 
G4double GetSystemElapsed () const
 
G4double GetUserElapsed () const
 

Detailed Description

Definition at line 111 of file G4SliceTimer.hh.

Constructor & Destructor Documentation

◆ G4SliceTimer()

G4SliceTimer::G4SliceTimer ( )

Definition at line 63 of file G4SliceTimer.cc.

64 : fValidTimes(true), fRealElapsed(0.), fSystemElapsed(0.), fUserElapsed(0.)
65{
66 Clear();
67}

Member Function Documentation

◆ Clear()

void G4SliceTimer::Clear ( )
inline

Referenced by G4SliceTimer().

◆ GetRealElapsed()

G4double G4SliceTimer::GetRealElapsed ( ) const

Definition at line 69 of file G4SliceTimer.cc.

70{
71 return fRealElapsed/sysconf(_SC_CLK_TCK);
72}

Referenced by operator<<().

◆ GetSystemElapsed()

G4double G4SliceTimer::GetSystemElapsed ( ) const

Definition at line 74 of file G4SliceTimer.cc.

75{
76 return fSystemElapsed/sysconf(_SC_CLK_TCK);
77}

Referenced by operator<<().

◆ GetUserElapsed()

G4double G4SliceTimer::GetUserElapsed ( ) const

Definition at line 79 of file G4SliceTimer.cc.

80{
81 return fUserElapsed/sysconf(_SC_CLK_TCK);
82}

Referenced by operator<<().

◆ IsValid()

G4bool G4SliceTimer::IsValid ( ) const
inline

Referenced by operator<<().

◆ Start()

void G4SliceTimer::Start ( )
inline

◆ Stop()

void G4SliceTimer::Stop ( )
inline

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