#include <TimeMeasure.h>
Public メソッド | |
TimeMeasure (int buflen=100) | |
Time statictics object for profiling. | |
void | tick () |
Begin time measurement for time statistics. | |
void | tack () |
Finish time measurement for time statistics. | |
coil::TimeValue & | interval () |
void | reset () |
unsigned long int | count () const |
Get number of time measurement buffer. | |
bool | getStatistics (double &max_interval, double &min_interval, double &mean_interval, double &stddev) |
Get total statistics. Get total statistics max_interval, min_interval, mean_interval [ns] | |
Statistics | getStatistics () |
構成 | |
struct | Statistics |
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.
coil::TimeMeasure::TimeMeasure | ( | int | buflen = 100 |
) |
Time statictics object for profiling.
Constructor
void coil::TimeMeasure::tick | ( | ) |
Begin time measurement for time statistics.
Begin time measurement for time statistics
void coil::TimeMeasure::tack | ( | ) |
Finish time measurement for time statistics.
End of time measurement for time statistics
coil::TimeValue& coil::TimeMeasure::interval | ( | ) |
void coil::TimeMeasure::reset | ( | ) |
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, min_interval, mean_interval [ns]
Statistics coil::TimeMeasure::getStatistics | ( | ) |