|
OpenRTM-aist
1.2.1
|
TimeMeasure class. More...
#include <TimeMeasure.h>
Classes | |
| struct | Statistics |
| Structure for time statistics. More... | |
Public Member Functions | |
| TimeMeasure (int buflen=100) | |
| Constructor. More... | |
| void | tick () |
| Begin time measurement for time statistics. More... | |
| void | tack () |
| Finish time measurement for time statistics. More... | |
| coil::TimeValue & | interval () |
| Get a interval time. More... | |
| void | reset () |
| Initialize for statistics related data. More... | |
| unsigned long int | count () const |
| Get number of time measurement buffer. More... | |
| bool | getStatistics (double &max_interval, double &min_interval, double &mean_interval, double &stddev) |
| Get total statistics. More... | |
| Statistics | getStatistics () |
| Get statistics result. More... | |
TimeMeasure class.
This class 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.
| coil::TimeMeasure::TimeMeasure | ( | int | buflen = 100 | ) |
Constructor.
Time Statistics object for profiling.
| unsigned long int coil::TimeMeasure::count | ( | ) | const |
Get number of time measurement buffer.
Get number of time measurement buffer.
| bool coil::TimeMeasure::getStatistics | ( | double & | max_interval, |
| double & | min_interval, | ||
| double & | mean_interval, | ||
| double & | stddev | ||
| ) |
Get total statistics.
Get total statistics.
| max_interval | Max value [ns] |
| min_interval | Min value [ns] |
| mean_interval | Mean value [ns] |
| stddev | Standard deviation value |
| Statistics coil::TimeMeasure::getStatistics | ( | ) |
| coil::TimeValue& coil::TimeMeasure::interval | ( | ) |
| void coil::TimeMeasure::reset | ( | ) |
Initialize for statistics related data.
Initialize for statistics related data.
| void coil::TimeMeasure::tack | ( | ) |
Finish time measurement for time statistics.
End of time measurement for time statistics.
| void coil::TimeMeasure::tick | ( | ) |
Begin time measurement for time statistics.
Begin time measurement for time statistics.
1.8.11