Belle II Software development
|
Class to capture the time a repeated execution took. More...
#include <TimeIt.h>
Public Member Functions | |
TimeItResult (const std::vector< std::chrono::duration< double > > &timeSpans) | |
Constructor from a series of timings. | |
double | getSeconds (size_t iExecution) const |
Get the time of the individual executions. | |
double | getAverageSeconds () const |
Get the average execution time. | |
size_t | getNExecutions () const |
Get number of executions. | |
void | printSummary () const |
Print a summary of the collected time to the console. | |
Private Attributes | |
std::vector< std::chrono::duration< double > > | m_timeSpans |
Memory for the time spans a repeated execution took. | |
|
inlineexplicit |
Constructor from a series of timings.
Definition at line 32 of file TimeIt.h.
|
inline |
Get the average execution time.
Definition at line 43 of file TimeIt.h.
|
inline |
|
inline |
Get the time of the individual executions.
|
inline |
Print a summary of the collected time to the console.
Definition at line 57 of file TimeIt.h.
|
private |