#include <unistd.h>
#include <sys/times.h>
#include "G4Types.hh"
#include "G4ios.hh"
#include "G4SliceTimer.icc"
Go to the source code of this file.
Data Structures | |
class | G4SliceTimer |
Defines | |
#define | times ostimes |
Functions | |
std::ostream & | operator<< (std::ostream &os, const G4SliceTimer &t) |
#define times ostimes |
Definition at line 137 of file G4SliceTimer.hh.
Referenced by fill_window(), G4Timer::Start(), G4SliceTimer::Start(), G4Timer::Stop(), and G4SliceTimer::Stop().
std::ostream& operator<< | ( | std::ostream & | os, | |
const G4SliceTimer & | t | |||
) |
Definition at line 48 of file G4SliceTimer.cc.
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 }