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

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

Definition at line 48 of file G4SliceTimer.cc.

References G4SliceTimer::GetRealElapsed(), G4SliceTimer::GetSystemElapsed(), G4SliceTimer::GetUserElapsed(), and G4SliceTimer::IsValid().

00049 {
00050     if (t.IsValid())
00051         {
00052             os << "User=" << t.GetUserElapsed()
00053                << "s Real=" << t.GetRealElapsed()
00054                << "s Sys=" << t.GetSystemElapsed() << "s";
00055         }
00056     else
00057         {
00058             os << "User=****s Real=****s Sys=****s";
00059         }
00060     return os;
00061 }


Generated on Mon May 27 17:51:08 2013 for Geant4 by  doxygen 1.4.7