#ifndef ROOT_TTime
#define ROOT_TTime
#ifndef ROOT_Rtypes
#include "Rtypes.h"
#endif
class TTime {
private:
Long_t fMilliSec;
public:
TTime(): fMilliSec(0) { }
TTime(Long_t msec): fMilliSec(msec) { }
TTime(const TTime &t): fMilliSec(t.fMilliSec) { }
virtual ~TTime() { }
TTime& operator=(const TTime &t);
TTime operator+=(const TTime &t);
TTime operator-=(const TTime &t);
TTime operator*=(const TTime &t);
TTime operator/=(const TTime &t);
friend TTime operator+(const TTime &t1, const TTime &t2);
friend TTime operator-(const TTime &t1, const TTime &t2);
friend TTime operator*(const TTime &t1, const TTime &t2);
friend TTime operator/(const TTime &t1, const TTime &t2);
friend Bool_t operator== (const TTime &t1, const TTime &t2);
friend Bool_t operator!= (const TTime &t1, const TTime &t2);
friend Bool_t operator< (const TTime &t1, const TTime &t2);
friend Bool_t operator<= (const TTime &t1, const TTime &t2);
friend Bool_t operator> (const TTime &t1, const TTime &t2);
friend Bool_t operator>= (const TTime &t1, const TTime &t2);
operator long() const;
operator unsigned long() const;
const char *AsString() const;
ClassDef(TTime,1)
};
inline TTime& TTime::operator= (const TTime &t)
{ fMilliSec = t.fMilliSec; return *this; }
inline TTime TTime::operator+=(const TTime &t)
{ fMilliSec += t.fMilliSec; return *this; }
inline TTime TTime::operator-=(const TTime &t)
{ fMilliSec -= t.fMilliSec; return *this; }
inline TTime TTime::operator*=(const TTime &t)
{ fMilliSec *= t.fMilliSec; return *this; }
inline TTime TTime::operator/=(const TTime &t)
{ fMilliSec /= t.fMilliSec; return *this; }
inline TTime::operator long() const
{ return fMilliSec; }
inline TTime::operator unsigned long() const
{ return (ULong_t) fMilliSec; }
inline TTime operator+(const TTime &t1, const TTime &t2)
{ return TTime(t1.fMilliSec + t2.fMilliSec); }
inline TTime operator-(const TTime &t1, const TTime &t2)
{ return TTime(t1.fMilliSec - t2.fMilliSec); }
inline TTime operator*(const TTime &t1, const TTime &t2)
{ return TTime(t1.fMilliSec * t2.fMilliSec); }
inline TTime operator/(const TTime &t1, const TTime &t2)
{ return TTime(t1.fMilliSec / t2.fMilliSec); }
inline Bool_t operator== (const TTime &t1, const TTime &t2)
{ return t1.fMilliSec == t2.fMilliSec; }
inline Bool_t operator!= (const TTime &t1, const TTime &t2)
{ return t1.fMilliSec != t2.fMilliSec; }
inline Bool_t operator< (const TTime &t1, const TTime &t2)
{ return t1.fMilliSec < t2.fMilliSec; }
inline Bool_t operator<= (const TTime &t1, const TTime &t2)
{ return t1.fMilliSec <= t2.fMilliSec; }
inline Bool_t operator> (const TTime &t1, const TTime &t2)
{ return t1.fMilliSec > t2.fMilliSec; }
inline Bool_t operator>= (const TTime &t1, const TTime &t2)
{ return t1.fMilliSec >= t2.fMilliSec; }
#endif
Last change: Wed Jun 25 08:54:13 2008
Last generated: 2008-06-25 08:54
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.