Timer class
Contents
Timer is a simple class to do timing 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
Pack/Unpack: Serialize Timer object for Charm++
Function documentation
void tk:: Timer:: eta(real term,
real time,
uint64_t nstep,
uint64_t it,
Watch& elapsedWatch,
Watch& estimatedWatch) const
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 |
| 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