140 clock_t finish = clock();
168 time_t finish = time(
nullptr) + time2Finish;
170 std::stringstream ss;
173 ss << ctime(&finish);
176 ss.seekp((
long) ss.tellp() - 1);
179 ss <<
" (" << time2Finish / 3600 <<
"h)";
double Mdouble
Definition: GeneralDefine.h:13
Logger< MERCURYDPM_LOGLEVEL > logger("MercuryKernel")
Definition of different loggers with certain modules. A user can define its own custom logger here.
Estimates the total time, in seconds, left to reach the end of any simulation. First,...
Definition: MercuryTime.h:109
std::string getFinishTime(Mdouble t)
Returns the estimated finish time based on the amount of time left to finish.
Definition: MercuryTime.h:162
Mdouble timeMax_
Stores the total simulation time (DPM units)
Definition: MercuryTime.h:191
clock_t startTime_
Stores the current number of clock ticks at the start.
Definition: MercuryTime.h:185
Time2Finish(Mdouble t, Mdouble tMax)
Initialises the variable start with the current value of clock ticks, the current time and the final ...
Definition: MercuryTime.h:118
Mdouble getTime2Finish(Mdouble t)
Estimates the total time, in seconds, left to reach the end of any simulation. After the class is ini...
Definition: MercuryTime.h:138
Mdouble time_
Stores the simulation time (DPM units)
Definition: MercuryTime.h:188
Allows for timing the algorithms; accurate up to 0.01 sec.
Definition: MercuryTime.h:25
std::chrono::time_point< std::chrono::high_resolution_clock > wallClockStart
Definition: MercuryTime.h:87
clock_t finish
Stores the number of clock ticks, called by Time::toc().
Definition: MercuryTime.h:92
std::chrono::time_point< std::chrono::high_resolution_clock > wallClockFinish
Definition: MercuryTime.h:93
Mdouble toc()
This is like a stop button of a stopwatch. Assigns the variable finish to the current value of ticks ...
Definition: MercuryTime.h:49
Time()
Definition: MercuryTime.h:28
Mdouble getWallTime()
Definition: MercuryTime.h:67
clock_t start
Stores the number of clock ticks, called by Time::tic().
Definition: MercuryTime.h:86
Mdouble toctic()
Outputs the toc value and resets the start time.
Definition: MercuryTime.h:75
Mdouble getCPUTime() const
Definition: MercuryTime.h:59
void tic()
This is like a start button of a stopwatch. Assigns the variable start with the current number of clo...
Definition: MercuryTime.h:38
Real fabs(const Real &a)
Definition: boostmultiprec.cpp:117
std::string string(const unsigned &i)
Definition: oomph_definitions.cc:286
t
Definition: plotPSD.py:36