#include "G4Timer.hh"
#include "G4ios.hh"
#include "G4Exception.hh"
#include <iomanip>
Go to the source code of this file.
◆ operator<<()
std::ostream & operator<< |
( |
std::ostream & |
os, |
|
|
const G4Timer & |
t |
|
) |
| |
Definition at line 84 of file G4Timer.cc.
85{
86
87 std::stringstream ss;
88 ss << std::fixed;
90 {
93#ifdef G4MULTITHREADED
94
96 {
99 ss << std::setprecision(1);
100 ss << " [Cpu=" << std::setprecision(1) << cpu_util << "%]";
101 }
102#endif
103 }
104 else
105 {
106 ss << "User=****s Real=****s Sys=****s";
107 }
108 os << ss.str();
109
110 return os;
111}
G4double GetSystemElapsed() const
G4double GetUserElapsed() const
G4double GetRealElapsed() const