class
#include <src/Base/Timer.hpp>
Timer Simple class to do timing.
Timing use at various parts of the code in a portable way. The functionality is intended to be very minimal and simple, but still convenient to use, with as little state as possible.
Public types
Constructors, destructors, conversion operators
- Timer() explicit
- Constructor: initialize clock to current time stamp.
Public functions
- void zero()
- Zero timer.
- auto dsec() const -> real
- auto hms() const -> Watch
- Query time in second since the constructor call.
-
void eta(real term,
real time,
uint64_t nstep,
uint64_t it,
tk::
real res0, tk:: real res, tk:: real rest, Watch& elapsedWatch, Watch& estimatedWatch) - Estimate time for accomplishment.
Pack/Unpack: Serialize Timer object for Charm++
Function documentation
void tk:: Timer:: eta(real term,
real time,
uint64_t nstep,
uint64_t it,
tk:: real res0,
tk:: real res,
tk:: real rest,
Watch& elapsedWatch,
Watch& estimatedWatch)
Estimate time for accomplishment.
Parameters | |
---|---|
term in | Time at which to terminate time stepping |
time in | Current time |
nstep in | Max number of time steps to take |
it in | Current iteration count |
res0 in | Residual at previous call (during convergence to steady state) |
res in | Current residual (during convergence to steady state) |
rest in | Target residual (during convergence to steady state) |
elapsedWatch out | Elapsed time in h:m:s |
estimatedWatch out | Estimated time for accomplishmet in h:m:s |
void tk:: Timer:: pup(PUP::er& p)
Parameters | |
---|---|
p in/out | Charm++'s PUP::er serializer object reference |
Pack/Unpack serialize member function