Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TTime Class Reference

Basic time type with millisecond precision.

Definition at line 27 of file TTime.h.

Public Member Functions

 TTime ()
 
 TTime (const TTime &t)
 
 TTime (Long64_t msec)
 
virtual ~TTime ()
 
const char * AsString () const
 Return the time as a string.
 
virtual TClassIsA () const
 
 operator long () const
 
 operator long long () const
 
 operator unsigned long () const
 
 operator unsigned long long () const
 
TTime operator*= (const TTime &t)
 
TTime operator+= (const TTime &t)
 
TTime operator-= (const TTime &t)
 
TTime operator/= (const TTime &t)
 
TTimeoperator= (const TTime &t)
 
virtual void Streamer (TBuffer &)
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 

Static Public Member Functions

static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 

Private Attributes

Long64_t fMilliSec
 

Friends

Bool_t operator!= (const TTime &t1, const TTime &t2)
 
TTime operator* (const TTime &t1, const TTime &t2)
 
TTime operator+ (const TTime &t1, const TTime &t2)
 
TTime operator- (const TTime &t1, const TTime &t2)
 
TTime operator/ (const TTime &t1, const TTime &t2)
 
Bool_t operator< (const TTime &t1, const TTime &t2)
 
Bool_t operator<= (const TTime &t1, const TTime &t2)
 
Bool_t operator== (const TTime &t1, const TTime &t2)
 
Bool_t operator> (const TTime &t1, const TTime &t2)
 
Bool_t operator>= (const TTime &t1, const TTime &t2)
 

#include <TTime.h>

Constructor & Destructor Documentation

◆ TTime() [1/3]

TTime::TTime ( )
inline

Definition at line 33 of file TTime.h.

◆ TTime() [2/3]

TTime::TTime ( Long64_t  msec)
inline

Definition at line 34 of file TTime.h.

◆ TTime() [3/3]

TTime::TTime ( const TTime t)
inline

Definition at line 35 of file TTime.h.

◆ ~TTime()

virtual TTime::~TTime ( )
inlinevirtual

Definition at line 36 of file TTime.h.

Member Function Documentation

◆ AsString()

const char * TTime::AsString ( ) const

Return the time as a string.

Definition at line 28 of file TTime.cxx.

◆ Class()

static TClass * TTime::Class ( )
static
Returns
TClass describing this class

◆ Class_Name()

static const char * TTime::Class_Name ( )
static
Returns
Name of this class

◆ Class_Version()

static constexpr Version_t TTime::Class_Version ( )
inlinestaticconstexpr
Returns
Version of this class

Definition at line 63 of file TTime.h.

◆ DeclFileName()

static const char * TTime::DeclFileName ( )
inlinestatic
Returns
Name of the file containing the class declaration

Definition at line 63 of file TTime.h.

◆ IsA()

virtual TClass * TTime::IsA ( ) const
inlinevirtual
Returns
TClass describing current object

Definition at line 63 of file TTime.h.

◆ operator long()

TTime::operator long ( ) const

Definition at line 35 of file TTime.cxx.

◆ operator long long()

TTime::operator long long ( ) const
inline

Definition at line 76 of file TTime.h.

◆ operator unsigned long()

TTime::operator unsigned long ( ) const

Definition at line 46 of file TTime.cxx.

◆ operator unsigned long long()

TTime::operator unsigned long long ( ) const
inline

Definition at line 78 of file TTime.h.

◆ operator*=()

TTime TTime::operator*= ( const TTime t)
inline

Definition at line 72 of file TTime.h.

◆ operator+=()

TTime TTime::operator+= ( const TTime t)
inline

Definition at line 68 of file TTime.h.

◆ operator-=()

TTime TTime::operator-= ( const TTime t)
inline

Definition at line 70 of file TTime.h.

◆ operator/=()

TTime TTime::operator/= ( const TTime t)
inline

Definition at line 74 of file TTime.h.

◆ operator=()

TTime & TTime::operator= ( const TTime t)
inline

Definition at line 66 of file TTime.h.

◆ Streamer()

virtual void TTime::Streamer ( TBuffer )
virtual

◆ StreamerNVirtual()

void TTime::StreamerNVirtual ( TBuffer ClassDef_StreamerNVirtual_b)
inline

Definition at line 63 of file TTime.h.

Friends And Related Symbol Documentation

◆ operator!=

Bool_t operator!= ( const TTime t1,
const TTime t2 
)
friend

Definition at line 92 of file TTime.h.

◆ operator*

TTime operator* ( const TTime t1,
const TTime t2 
)
friend

Definition at line 85 of file TTime.h.

◆ operator+

TTime operator+ ( const TTime t1,
const TTime t2 
)
friend

Definition at line 81 of file TTime.h.

◆ operator-

TTime operator- ( const TTime t1,
const TTime t2 
)
friend

Definition at line 83 of file TTime.h.

◆ operator/

TTime operator/ ( const TTime t1,
const TTime t2 
)
friend

Definition at line 87 of file TTime.h.

◆ operator<

Bool_t operator< ( const TTime t1,
const TTime t2 
)
friend

Definition at line 94 of file TTime.h.

◆ operator<=

Bool_t operator<= ( const TTime t1,
const TTime t2 
)
friend

Definition at line 96 of file TTime.h.

◆ operator==

Bool_t operator== ( const TTime t1,
const TTime t2 
)
friend

Definition at line 90 of file TTime.h.

◆ operator>

Bool_t operator> ( const TTime t1,
const TTime t2 
)
friend

Definition at line 98 of file TTime.h.

◆ operator>=

Bool_t operator>= ( const TTime t1,
const TTime t2 
)
friend

Definition at line 100 of file TTime.h.

Member Data Documentation

◆ fMilliSec

Long64_t TTime::fMilliSec
private

Definition at line 30 of file TTime.h.

Libraries for TTime:

The documentation for this class was generated from the following files: