#include "G4SliceTimer.hh"
#include "G4ios.hh"
Go to the source code of this file.
Functions | |
std::ostream & | operator<< (std::ostream &os, const G4SliceTimer &t) |
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 }