CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Private Attributes
GenTimeInterval< Time > Class Template Reference

#include <GenTimer.h>

Public Types

typedef Time::IntervalType IntervalType
 
typedef Time::IntervalType T
 

Public Member Functions

 GenTimeInterval (IntervalType i=0)
 
double microseconds () const
 
 operator const IntervalType & () const
 
 operator IntervalType & ()
 
GenTimeIntervaloperator= (IntervalType i)
 
double seconds () const
 
const IntervalTypeticks () const
 

Private Attributes

IntervalType it
 

Detailed Description

template<class Time>
class GenTimeInterval< Time >

a generic Time interval

Definition at line 11 of file GenTimer.h.

Member Typedef Documentation

template<class Time>
typedef Time::IntervalType GenTimeInterval< Time >::IntervalType

Definition at line 13 of file GenTimer.h.

template<class Time>
typedef Time::IntervalType GenTimeInterval< Time >::T

Definition at line 14 of file GenTimer.h.

Constructor & Destructor Documentation

template<class Time>
GenTimeInterval< Time >::GenTimeInterval ( IntervalType  i = 0)
inline

Definition at line 18 of file GenTimer.h.

18 : it(i) {}
int i
Definition: DBlmapReader.cc:9
IntervalType it
Definition: GenTimer.h:39

Member Function Documentation

template<class Time>
double GenTimeInterval< Time >::microseconds ( ) const
inline

Definition at line 36 of file GenTimer.h.

References GenTimeInterval< Time >::seconds().

36 { return 1.e6*seconds();}
double seconds() const
Definition: GenTimer.h:33
template<class Time>
GenTimeInterval< Time >::operator const IntervalType & ( ) const
inline

Definition at line 27 of file GenTimer.h.

References GenTimeInterval< Time >::it.

27 { return it;}
IntervalType it
Definition: GenTimer.h:39
template<class Time>
GenTimeInterval< Time >::operator IntervalType & ( )
inline

Definition at line 24 of file GenTimer.h.

References GenTimeInterval< Time >::it.

24 { return it;}
IntervalType it
Definition: GenTimer.h:39
template<class Time>
GenTimeInterval& GenTimeInterval< Time >::operator= ( IntervalType  i)
inline

Definition at line 21 of file GenTimer.h.

References i, and GenTimeInterval< Time >::it.

21 { it=i; return *this;}
int i
Definition: DBlmapReader.cc:9
IntervalType it
Definition: GenTimer.h:39
template<class Time>
double GenTimeInterval< Time >::seconds ( ) const
inline

Definition at line 33 of file GenTimer.h.

References GenTimeInterval< Time >::it.

Referenced by TimeMe::lap(), GenTimeInterval< Time >::microseconds(), TimingReport::Item::realsec(), and TimingReport::Item::stop().

33 { return Time::oneTick()*it; }
IntervalType it
Definition: GenTimer.h:39
template<class Time>
const IntervalType& GenTimeInterval< Time >::ticks ( ) const
inline

Definition at line 30 of file GenTimer.h.

References GenTimeInterval< Time >::it.

30 { return it;}
IntervalType it
Definition: GenTimer.h:39

Member Data Documentation

template<class Time>
IntervalType GenTimeInterval< Time >::it
private