test
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 | Public Attributes
GenTimer< Time >::Bias Struct Reference

#include <GenTimer.h>

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, GenTimer< Time >::lap(), GenTimer< Time >::Bias::mes, GenTimer< Time >::Bias::met, n, GenTimer< Time >::start(), and GenTimer< Time >::stop().

64  {
65  mes=0.;
66  met=0;
67  if(n==0) return;
68  IT it;
69  for (unsigned int i=0; i<n;i++) {
70  it.start();it.stop();
71  }
72  mes = it.lap().seconds()/double(n);
73  met = it.lap().ticks()/IntervalType(n);
74  }
int i
Definition: DBlmapReader.cc:9
Time::IntervalType IntervalType
Definition: GenTimer.h:54
double mes
Definition: GenTimer.h:62
std::vector< LinkConnSpec >::const_iterator IT
IntervalType met
Definition: GenTimer.h:63

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

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

Definition at line 63 of file GenTimer.h.

Referenced by GenTimer< Time >::Bias::Bias().