Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4SliceTimer.cc File Reference
#include "G4SliceTimer.hh"
#include "G4ios.hh"

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &os, const G4SliceTimer &t)
 

Function Documentation

◆ operator<<()

std::ostream & operator<< ( std::ostream &  os,
const G4SliceTimer t 
)

Definition at line 48 of file G4SliceTimer.cc.

49{
50 if (t.IsValid())
51 {
52 os << "User=" << t.GetUserElapsed()
53 << "s Real=" << t.GetRealElapsed()
54 << "s Sys=" << t.GetSystemElapsed() << "s";
55 }
56 else
57 {
58 os << "User=****s Real=****s Sys=****s";
59 }
60 return os;
61}
G4double GetUserElapsed() const
Definition: G4SliceTimer.cc:79
G4double GetSystemElapsed() const
Definition: G4SliceTimer.cc:74
G4bool IsValid() const
G4double GetRealElapsed() const
Definition: G4SliceTimer.cc:69