Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | Related Pages | Examples

AverageTimeCalculator< precision, default_value, min_value, max_value > Class Template Reference

This template-class can summarize values and keep a running average on them. The precision, min/max, and default are all set at compile-time. It is intended for use with milliseconds. More...

#include <averagetimecalculator.h>

List of all members.

Public Member Functions

 AverageTimeCalculator ()
void reset ()
 This will initilize/clear the RRT-info.
void registerValue (unsigned int val)
 This will add a value to the set and recalculate a new average.
unsigned int getAvg () const
 Will return the current average.


Detailed Description

template<int precision = 16, int default_value = 250, int min_value = 10, int max_value = 3000>
class AverageTimeCalculator< precision, default_value, min_value, max_value >

This template-class can summarize values and keep a running average on them. The precision, min/max, and default are all set at compile-time. It is intended for use with milliseconds.

Author:
Lars Langer and Emanuel Greisen

Definition at line 35 of file averagetimecalculator.h.


The documentation for this class was generated from the following file:
Generated on Mon Feb 6 12:24:51 2006 for Ganef by  doxygen 1.4.4