![]() |
VPTissue Reference Manual
|
Utility class to record durations. More...
#include <IndividualRecords.h>

Public Types | |
| using | Duration = T |
Public Member Functions | |
| void | Clear () |
| Clear the entire set of records. | |
| unsigned int | GetCount (const std::string &name) const |
| Return count for records with name. | |
| Duration | GetCumulative (const std::string &name) const |
| Return cumulative time for records with name. | |
| Duration | GetMean (const std::string &name) const |
| Return cumulative time for records with name. | |
| Duration | GetMinimum (const std::string &name) const |
| Return minimum time for records with name. | |
| std::list< std::string > | GetNames () const |
| Return list of names. | |
| std::vector< Duration > | GetRecord (const std::string &name) const |
| Return records associated with given name. | |
| template<typename U = std::chrono::seconds> | |
| IndividualRecords< U > | GetRecords () const |
| Return records for all names in durations U (casting if required). | |
| IndividualRecords< Duration > | GetRecords () const |
| Return records for all names in durations Duration (so no casting). | |
| Duration | GetStandardDeviation (const std::string &name) const |
| Return standard deviation for record with given name. | |
| bool | IsPresent (const std::string &name) const |
| Return whether there are records associated with a given name. | |
| template<typename U > | |
| void | Merge (const IndividualRecords< U > &extra) |
| Merge an extra set of records (casting durations if required). | |
| void | Merge (const IndividualRecords< Duration > &extra) |
| Merge an extra set of records of same Duration (no casting). | |
| template<typename R , typename P > | |
| void | Record (const std::string &name, const std::chrono::duration< R, P > &duration) |
| Record the duration for the given name. | |
Utility class to record durations.
Records durations associated with a name (but does not accumulate). Template parameter is duration type (default std::chrono::seconds).
Definition at line 43 of file IndividualRecords.h.