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.
 
 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)
 

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.

◆ 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.

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.

  • core/base/inc/TTime.h
  • core/base/src/TTime.cxx