49 std::chrono::high_resolution_clock::time_point realtimeData;
50 std::clock_t cputimeData;
115 double cpuTimeElapsed_;
116 double realTimeElapsed_;
122 #endif // OPM_TIMER_HPP void start()
Start counting the time resources used by the simulation.
Definition: timer.cpp:46
Timer & operator+=(const Timer &other)
Adds the time of another timer to the current one.
Definition: timer.cpp:140
This file contains a set of helper functions used by VFPProd / VFPInj.
Definition: blackoilbioeffectsmodules.hh:45
void reset()
Make the current point in time t=0 but do not change the status of the timer.
Definition: timer.cpp:82
double realTimeElapsed() const
Return the real time [s] elapsed during the periods the timer was active since the last reset...
Definition: timer.cpp:90
double cpuTimeElapsed() const
Return the CPU time [s] used by all threads of the local process for the periods the timer was active...
Definition: timer.cpp:107
Provides an encapsulation to measure the system time.
Definition: timer.hpp:45
double globalCpuTimeElapsed() const
Return the CPU time [s] used by all threads of the all processes of program.
Definition: timer.cpp:122
double elapsed() const
This is an alias for realTimeElapsed()
Definition: timer.hpp:92
void halt()
Stop the measurement reset all timing values.
Definition: timer.cpp:75
double stop()
Stop counting the time resources.
Definition: timer.cpp:52