ROOT logo
ROOT » CORE » BASE » TTime

class TTime


TTime

Basic time type with millisecond precision.


Function Members (Methods)

public:
TTime()
TTime(Long_t msec)
TTime(const TTime& t)
virtual~TTime()
const char*AsString() const
static TClass*Class()
virtual TClass*IsA() const
longoperator long() const
unsigned longoperator unsigned long() const
TTimeoperator*=(const TTime& t)
TTimeoperator+=(const TTime& t)
TTimeoperator-=(const TTime& t)
TTimeoperator/=(const TTime& t)
TTime&operator=(const TTime& t)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)

Data Members

private:
Long_tfMilliSec

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

const char * AsString() const
 Return the time as a string.
TTime& operator=(const TTime& t)
{ fMilliSec = t.fMilliSec; return *this; }
TTime operator+=(const TTime& t)
{ fMilliSec += t.fMilliSec; return *this; }
TTime operator-=(const TTime& t)
{ fMilliSec -= t.fMilliSec; return *this; }
TTime operator*=(const TTime& t)
{ fMilliSec *= t.fMilliSec; return *this; }
TTime operator/=(const TTime& t)
{ fMilliSec /= t.fMilliSec; return *this; }
inline operator long() const
{ return fMilliSec; }
inline operator unsigned long() const
{ return (ULong_t) fMilliSec; }
TTime()
{ }
TTime(Long_t msec)
{ }
TTime(const TTime &t)
{ }
virtual ~TTime()
{ }