PYTHIA
8.312
|
#include <ProgressLog.h>
Public Member Functions | |
ProgressLog (long NIn, int maxsec=1200) | |
Create an object for monitoring the progress of a run with NIn iterations. | |
void | operator() (int cnt) |
void | operator() () |
void | tick (long i, long n) |
double | fclock () |
Interface to the system time information. | |
bool | statusTime (long i, long n) const |
Check if this is a good time to print out a status line. | |
void | init (long n) |
Initialise the basic engine. | |
ProgressLog is a simple helper class to monitor the progress of a run. When used in the main event loop, it will with suitably (logarithmically) spaced intervals, print out one line with information about the number of events generated, two estimates (based on instantaneous and average CPU consumption) of when the run will be completed, the host on which the program is run and its process number.
|
inline |
Intermittently write out a line of progress information, giving the current iteration (in the interval [0:N[ ).
|
inline |
Intermittently write out a line of progress information using the internal counter.
|
inline |
Intermittently write out a line of progress information giving the current iteration and the total number of iterations.