|
ACTS
Experiment-independent tracking
|
A timer class that measures and averages execution times of multiple samples. More...
#include <Acts/Utilities/ScopedTimer.hpp>
Classes | |
| class | Sample |
| RAII wrapper class for measuring individual timing samples. More... | |
Public Types | |
| using | clock_type = std::chrono::high_resolution_clock |
| Type alias for high resolution clock used for timing measurements. | |
Public Member Functions | |
| AveragingScopedTimer (AveragingScopedTimer &&)=delete | |
| AveragingScopedTimer (const AveragingScopedTimer &)=delete | |
| AveragingScopedTimer (const std::string &name, const Logger &logger, Logging::Level lvl=Logging::Level::INFO) | |
| Construct a new AveragingScopedTimer. | |
| ~AveragingScopedTimer () | |
| Destroy the AveragingScopedTimer and log statistics. | |
| AveragingScopedTimer & | operator= (AveragingScopedTimer &&)=delete |
| AveragingScopedTimer & | operator= (const AveragingScopedTimer &)=delete |
| Sample | sample () |
| Create a new timing sample. | |
A timer class that measures and averages execution times of multiple samples.
This class provides functionality to measure execution times of code blocks and calculate statistics (mean, standard deviation) across multiple samples. It uses RAII through the Sample class to automatically record timing information.
| using Acts::AveragingScopedTimer::clock_type = std::chrono::high_resolution_clock |
Type alias for high resolution clock used for timing measurements.
|
explicit |
Construct a new AveragingScopedTimer.
| name | Name of the timer for logging |
| logger | Logger instance to use for output |
| lvl | Logging level for timing output |
| Acts::AveragingScopedTimer::~AveragingScopedTimer | ( | ) |
Destroy the AveragingScopedTimer and log statistics.
Outputs total duration and per-sample statistics (mean ± stddev) if logging is enabled at the configured level.
|
delete |
|
delete |
|
delete |
|
delete |
| Sample Acts::AveragingScopedTimer::sample | ( | ) |
Create a new timing sample.