CMS 3D CMS Logo

GenTimeInterval< Time > Class Template Reference

a generic Time interval More...

#include <Utilities/Timing/interface/GenTimer.h>

List of all members.

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.

00018 : it(i) {}


Member Function Documentation

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

Definition at line 36 of file GenTimer.h.

References GenTimeInterval< Time >::seconds().

00036 { return 1.e6*seconds();}

template<class Time>
GenTimeInterval< Time >::operator const IntervalType & (  )  const [inline]

Definition at line 27 of file GenTimer.h.

References GenTimeInterval< Time >::it.

00027 { return it;}

template<class Time>
GenTimeInterval< Time >::operator IntervalType & (  )  [inline]

Definition at line 24 of file GenTimer.h.

References GenTimeInterval< Time >::it.

00024 { return it;}

template<class Time>
GenTimeInterval& GenTimeInterval< Time >::operator= ( IntervalType  i  )  [inline]

Definition at line 21 of file GenTimer.h.

References GenTimeInterval< Time >::it.

00021 { it=i; return *this;}

template<class Time>
double GenTimeInterval< Time >::seconds ( void   )  const [inline]

Definition at line 33 of file GenTimer.h.

References GenTimeInterval< Time >::it.

Referenced by GenTimeInterval< Time >::microseconds().

00033 { return Time::oneTick()*it; }

template<class Time>
const IntervalType& GenTimeInterval< Time >::ticks (  )  const [inline]

Definition at line 30 of file GenTimer.h.

References GenTimeInterval< Time >::it.

00030 { return it;}


Member Data Documentation

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

Definition at line 39 of file GenTimer.h.

Referenced by GenTimeInterval< Time >::operator const IntervalType &(), GenTimeInterval< Time >::operator IntervalType &(), GenTimeInterval< Time >::operator=(), GenTimeInterval< Time >::seconds(), and GenTimeInterval< Time >::ticks().


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:21:22 2009 for CMSSW by  doxygen 1.5.4