CMS 3D CMS Logo

Public Types | Public Member Functions | Public Attributes

GenTimer< Time >::Bias Struct Reference

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

                              {
      mes=0.;
      met=0;
      if(n==0) return;
      IT it; 
      for (unsigned int i=0; i<n;i++) {
        it.start();it.stop();
      }
      mes = it.lap().seconds()/double(n);
      met = it.lap().ticks()/IntervalType(n);
    }

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