Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4SliceTimer.hh File Reference
#include <sys/times.h>
#include <unistd.h>
#include "G4Types.hh"
#include "G4ios.hh"
#include "G4SliceTimer.icc"

Go to the source code of this file.

Classes

class  G4SliceTimer
 

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 41 of file G4SliceTimer.cc.

42{
43 // Print timer status n std::ostream
44
45 if(t.IsValid())
46 {
47 os << "User = " << t.GetUserElapsed() << "s Real = " << t.GetRealElapsed()
48 << "s Sys = " << t.GetSystemElapsed() << "s";
49 }
50 else
51 {
52 os << "User = ****s Real = ****s Sys = ****s";
53 }
54 return os;
55}
G4double GetUserElapsed() const
Definition: G4SliceTimer.cc:73
G4double GetSystemElapsed() const
Definition: G4SliceTimer.cc:67
G4bool IsValid() const
G4double GetRealElapsed() const
Definition: G4SliceTimer.cc:61