#ifndef _QPROGRESS_
#define _QPROGRESS_
#include <cstdio>
#include "Rtypes.h"
#include "TSystem.h"
#include "TTime.h"
class QProgress{
public:
QProgress(Int_t maxval=0, Int_t interval=1000):fMaxVal(maxval),fInterval(interval),fInitTime(GetTime()),fLastTime(GetTime()-interval){}
virtual ~QProgress(){}
void Init(){fInitTime=GetTime(); fLastTime=fInitTime-fInterval;}
void SetMaxVal(Int_t maxval){fMaxVal=maxval;}
void SetInterval(Int_t interval){fInterval=interval;}
Int_t GetMaxVal(){return fMaxVal;}
void operator()(Int_t curval,Bool_t force=kFALSE);
private:
Long_t GetTime();
Int_t fMaxVal;
Int_t fInterval;
Long_t fInitTime;
Long_t fLastTime;
ClassDef(QProgress,1)
};
#endif
ROOT page - Class index - Class Hierarchy - Top of the page
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.