|
Celeritas 0.7.0-dev.244+develop.bf1c0bd0
|
At end of scope, print elapsed time and captured cout/cerr. More...
#include <ScopedTimeAndRedirect.hh>
Public Member Functions | |
| ScopedTimeAndRedirect (std::string label) | |
| Redirect cout/cerr on construction, and start timer implicitly. | |
| ~ScopedTimeAndRedirect () | |
| Print any stored output/error messages on destruct. | |
| ScopedTimeAndRedirect (ScopedTimeAndRedirect const &)=delete | |
| ScopedTimeAndRedirect & | operator= (ScopedTimeAndRedirect const &)=delete |
| ScopedTimeAndRedirect (ScopedTimeAndRedirect &&)=delete | |
| ScopedTimeAndRedirect & | operator= (ScopedTimeAndRedirect &&)=delete |
At end of scope, print elapsed time and captured cout/cerr.
This is designed to prevent other libraries (Geant4,VecGeom) from polluting stdout and breaking JSON reading ability.
| celeritas::ScopedTimeAndRedirect::~ScopedTimeAndRedirect | ( | ) |
Print any stored output/error messages on destruct.
Note that these will only print on MPI rank 0, not on every process.
|
delete |
Prevent copying and moving for RAII class
|
delete |
Prevent copying and moving for RAII class
|
delete |
Prevent copying and moving for RAII class
|
delete |
Prevent copying and moving for RAII class