Belle II Software  release-08-01-10
TimeItResult Class Reference

Class to capture the time a repeated execution took. More...

#include <TimeIt.h>

Collaboration diagram for TimeItResult:

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 executtions.
 
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.
 

Detailed Description

Class to capture the time a repeated execution took.

Definition at line 29 of file TimeIt.h.


The documentation for this class was generated from the following file: