CMS 3D CMS Logo

GenTimer< Time >::Bias Struct Reference

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

List of all members.

Public Types

typedef GenTimer< Time > IT

Public Member Functions

 Bias (unsigned int n=5000)

Public Attributes

double mes
IntervalType met


Detailed Description

template<class Time>
struct GenTimer< Time >::Bias

Definition at line 60 of file GenTimer.h.


Member Typedef Documentation

template<class Time>
typedef GenTimer<Time> GenTimer< Time >::Bias::IT

Definition at line 61 of file GenTimer.h.


Constructor & Destructor Documentation

template<class Time>
GenTimer< Time >::Bias::Bias ( unsigned int  n = 5000  )  [inline]

Definition at line 64 of file GenTimer.h.

References i, it, GenTimer< Time >::lap(), GenTimer< Time >::Bias::mes, GenTimer< Time >::Bias::met, n, GenTimer< Time >::start(), and GenTimer< Time >::stop().

00064                               {
00065       mes=0.;
00066       met=0;
00067       if(n==0) return;
00068       IT it; 
00069       for (unsigned int i=0; i<n;i++) {
00070         it.start();it.stop();
00071       }
00072       mes = it.lap().seconds()/double(n);
00073       met = it.lap().ticks()/IntervalType(n);
00074     }


Member Data Documentation

template<class Time>
double GenTimer< Time >::Bias::mes

Definition at line 62 of file GenTimer.h.

Referenced by GenTimer< Time >::Bias::Bias(), and GenTimer< Time >::bias().

template<class Time>
IntervalType GenTimer< Time >::Bias::met

Definition at line 63 of file GenTimer.h.

Referenced by GenTimer< Time >::Bias::Bias(), and GenTimer< Time >::bias().


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