Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
G4SliceTimer.hh File Reference
#include <unistd.h>
#include <sys/times.h>
#include "G4Types.hh"
#include "G4ios.hh"
#include "G4SliceTimer.icc"
Include dependency graph for G4SliceTimer.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  G4SliceTimer
 

Macros

#define times   ostimes
 

Functions

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

Macro Definition Documentation

#define times   ostimes

Definition at line 137 of file G4SliceTimer.hh.

Function Documentation

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 GetRealElapsed() const
Definition: G4SliceTimer.cc:69
G4double GetSystemElapsed() const
Definition: G4SliceTimer.cc:74
G4bool IsValid() const

Here is the call graph for this function: