10#include <framework/core/Module.h>
34 virtual void event()
override;
Display a progress bar and an estimate of remaining time when number of events is known (e....
long m_nTotal
Total number of events.
virtual void initialize() override
Init the module.
virtual void event() override
Show progress.
virtual void terminate() override
Don't break the terminal.
int m_progress
progress in percent since we last printed
double m_lastPrint
Timestamp when we last printed something (ns).
double m_startTime
Start time (ns).
long m_evtNr
Number of processed events.
bool m_isTTY
If true we don't show the interactive progress bar but just print a new one every time the progress a...
ProgressBarModule()
Constructor.
Abstract base class for different kinds of events.