5 #ifndef MADNESS_TIMING_UTILITIES_H
6 #define MADNESS_TIMING_UTILITIES_H
36 void print(
const std::string msg)
const {
39 ss <<
"timer:" << std::setw(30) << msg << std::setw(8) << std::setprecision(2)
40 << std::fixed <<
sss <<
"s " <<
ttt <<
"s";
41 std::cout << ss.str() << std::endl;
45 double tag(
const std::string msg) {
56 double end(
const std::string msg) {
void fence(bool debug=false)
Synchronizes all processes in communicator AND globally ensures no pending AM or tasks.
Definition: worldgop.cc:161
A parallel world class.
Definition: world.h:132
ProcessID rank() const
Returns the process rank in this World (same as MPI_Comm_rank()).
Definition: world.h:318
WorldGopInterface & gop
Global operations.
Definition: world.h:205
File holds all helper structures necessary for the CC_Operator and CC2 class.
Definition: DFParameters.h:10
static double cpu_time()
Returns the cpu time in seconds relative to an arbitrary origin.
Definition: timers.h:127
double wall_time()
Returns the wall time in seconds relative to an arbitrary origin.
Definition: timers.cc:48
Definition: timing_utilities.h:9
bool is_running
Definition: timing_utilities.h:13
double sss
Definition: timing_utilities.h:11
World & world
Definition: timing_utilities.h:10
double tag(const std::string msg)
Definition: timing_utilities.h:45
double interrupt()
Definition: timing_utilities.h:28
double ttt
Definition: timing_utilities.h:11
timer(World &world, bool do_print=true)
Definition: timing_utilities.h:15
void print(const std::string msg) const
Definition: timing_utilities.h:36
void resume()
Definition: timing_utilities.h:20
bool do_print
Definition: timing_utilities.h:12
double end(const std::string msg)
Definition: timing_utilities.h:56