|
ACTS
Experiment-independent tracking
|
RAII wrapper class for measuring individual timing samples. More...
#include <Acts/Utilities/ScopedTimer.hpp>
Public Member Functions | |
| Sample (AveragingScopedTimer &parent) | |
| Construct a new sample and start timing. | |
| Sample (const Sample &)=delete | |
| Sample (Sample &&) noexcept | |
| Move constructor that transfers ownership of timing to new sample. | |
| ~Sample () | |
| Record the duration when destroyed. | |
| Sample & | operator= (const Sample &)=delete |
| Sample & | operator= (Sample &&)=delete |
RAII wrapper class for measuring individual timing samples.
When constructed, starts a timer. When destroyed, automatically records the duration to the parent AveragingScopedTimer.
|
explicit |
Construct a new sample and start timing.
| parent | The parent averaging scoped timer to record to |
| Acts::AveragingScopedTimer::Sample::~Sample | ( | ) |
Record the duration when destroyed.
|
delete |
|
noexcept |
Move constructor that transfers ownership of timing to new sample.