PYTHIA  8.312
Public Member Functions | List of all members
ProgressLog Class Reference

#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.
 

Detailed Description

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.

Member Function Documentation

void operator() ( int  cnt)
inline

Intermittently write out a line of progress information, giving the current iteration (in the interval [0:N[ ).

void operator() ( )
inline

Intermittently write out a line of progress information using the internal counter.

void tick ( long  i,
long  n 
)
inline

Intermittently write out a line of progress information giving the current iteration and the total number of iterations.


The documentation for this class was generated from the following file: