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__