Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

RTM::TimeStatistics Class Reference

#include <RtcTimeStatistics.h>

List of all members.

Public Member Functions

 TimeStatistics (int buflen=100)
 Time statictics object for profiling. ============================================================.

void tick ()
 Begin time measurement for time statistics. ============================================================.

void tack ()
 Finish time measurement for time statistics. ============================================================.

int get_count () const
 Get number of time measurement buffer. ============================================================.

void get_stat (unsigned long long &max_interval, unsigned long long &min_interval, double &mean_interval, double &stddev)
 Get total statistics. ============================================================.

unsigned long long get_hrtime ()
 Get high resolution time of ns ============================================================.

unsigned long long get_system_clock ()
 Get system's cpu clock frequency [Hz] ============================================================.


Detailed Description

TimeStatistics object

This object is used for getting statistics of code execution time. Using get_stat you can get maximum, minimum, mean and standard deviation time for code execution.


Constructor & Destructor Documentation

RTM::TimeStatistics::TimeStatistics int  buflen = 100  ) 
 

Time statictics object for profiling. ============================================================.

============================================================ Constructor


Member Function Documentation

int RTM::TimeStatistics::get_count  )  const [inline]
 

Get number of time measurement buffer. ============================================================.

============================================================ Get number of time measurement buffer

unsigned long long RTM::TimeStatistics::get_hrtime  ) 
 

Get high resolution time of ns ============================================================.

============================================================ Get high resolution time

void RTM::TimeStatistics::get_stat unsigned long long &  max_interval,
unsigned long long &  min_interval,
double &  mean_interval,
double &  stddev
 

Get total statistics. ============================================================.

============================================================ Get total statistics

unsigned long long RTM::TimeStatistics::get_system_clock  ) 
 

Get system's cpu clock frequency [Hz] ============================================================.

============================================================ Get system's cpu clock frequency [Hz]

void RTM::TimeStatistics::tack  ) 
 

Finish time measurement for time statistics. ============================================================.

============================================================ End of time measurement for time statistics

void RTM::TimeStatistics::tick  ) 
 

Begin time measurement for time statistics. ============================================================.

============================================================ Begin time measurement for time statistics


The documentation for this class was generated from the following file:
Generated on Wed Apr 6 14:22:25 2005 for OpenRTM by doxygen 1.3.6