#include "TProofProgressStatus.h"
#include "TObject.h"
#include "TString.h"
ClassImp(TProofProgressStatus)
TProofProgressStatus::TProofProgressStatus(Long64_t entries,
Long64_t bytesRead,
Double_t procTime,
Double_t cpuTime): TObject()
{
fEntries = entries;
fBytesRead = bytesRead;
fProcTime = procTime;
fCPUTime = cpuTime;
}
TProofProgressStatus& TProofProgressStatus::operator+=(const TProofProgressStatus &st)
{
fEntries += st.GetEntries();
fBytesRead += st.GetBytesRead();
fProcTime += st.GetProcTime();
fCPUTime += st.GetCPUTime();
return *this;
}
TProofProgressStatus& TProofProgressStatus::operator-=(const TProofProgressStatus &st)
{
fEntries -= st.GetEntries();
fBytesRead -= st.GetBytesRead();
fProcTime -= st.GetProcTime();
fCPUTime -= st.GetCPUTime();
return *this;
}
TProofProgressStatus TProofProgressStatus::operator-(TProofProgressStatus &st)
{
return TProofProgressStatus(*this) -= st;
}
void TProofProgressStatus::Print(Option_t* ) const
{
Printf("TProofProgressStatus: Entries:%lld, BytesRead:%lld, ProfTime:%.3g s, CPUTime:%.3g s",
fEntries, fBytesRead, fProcTime, fCPUTime);
}
Last change: Wed Oct 15 17:13:59 2008
Last generated: 2008-10-15 17:13
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.