#include <PerfTimers.hpp>
|
| double * | acc |
| |
| std::chrono::steady_clock::time_point | t0 |
| |
◆ ScopedTimer() [1/2]
| openswmm::perf::ScopedTimer::ScopedTimer |
( |
double & | a | ) |
|
|
inlineexplicitnoexcept |
Start an unconditional wall timer against a borrowed accumulator.
Reads the clock even when profiling is disabled. Nested ScopedTimers include child time, unlike GatedTimer. Do not copy; destruction must occur before a is destroyed.
- Parameters
-
| [in,out] | a | Caller-owned seconds accumulator that must outlive this timer; updates are not synchronized. |
◆ ~ScopedTimer()
| openswmm::perf::ScopedTimer::~ScopedTimer |
( |
| ) |
|
|
inlinenoexcept |
Add complete elapsed wall seconds to the borrowed accumulator.
No environment check and no locking; nested timer intervals can overlap.
◆ ScopedTimer() [2/2]
| openswmm::perf::ScopedTimer::ScopedTimer |
( |
const ScopedTimer & | | ) |
|
|
delete |
Prevent copying an active ScopedTimer scope.
A copied scope would duplicate ownership of timing/counter cleanup and is forbidden at compile time.
◆ operator=()
Prevent replacing an active ScopedTimer scope by copy assignment.
Scope state must be completed by its original object on the thread that created it.
◆ acc
| double* openswmm::perf::ScopedTimer::acc |
◆ t0
| std::chrono::steady_clock::time_point openswmm::perf::ScopedTimer::t0 |
The documentation for this struct was generated from the following file:
- /home/runner/work/openswmm.engine/openswmm.engine/src/engine/core/PerfTimers.hpp