CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_14/src/RecoBTau/JetTagMVALearning/plugins/EventProgress.h

Go to the documentation of this file.
00001 #ifndef __EventProgress_H__
00002 #define __EventProgress_H__
00003 
00004 #include <time.h>
00005 
00006 class EventProgress {
00007     public:
00008         EventProgress();
00009         EventProgress(unsigned long nEvents);
00010         ~EventProgress();
00011 
00012         void update(unsigned long event);
00013 
00014     private:
00015         unsigned long   nEvents;
00016         time_t          startTime;
00017         time_t          lastUpdate;
00018         unsigned int    displayWidth;
00019 };
00020 
00021 #endif // __EventProgress_H__