CMS 3D CMS Logo

Public Types | Public Member Functions | Private Attributes

GenTimeInterval< Time > Class Template Reference

#include <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.

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

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

{ return it;}
template<class Time>
GenTimeInterval< Time >::operator IntervalType & ( ) [inline]

Definition at line 24 of file GenTimer.h.

References GenTimeInterval< Time >::it.

{ return it;}
template<class Time>
GenTimeInterval& GenTimeInterval< Time >::operator= ( IntervalType  i) [inline]

Definition at line 21 of file GenTimer.h.

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

{ it=i; return *this;}
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().

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

{ return it;}

Member Data Documentation

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