Adds the wall time of its scope to a double, in seconds.
More...
#include <output_timings.hh>
|
| double * | sink |
| |
| std::chrono::steady_clock::time_point | start |
| |
Adds the wall time of its scope to a double, in seconds.
Deliberately not deal.II's Timer (which is heavier and tied to MPI) nor the timesteppers' CalcDtTimer (which is stateful and millisecond-granular).
◆ ScopedTimer() [1/3]
| DiFfRG::ScopedTimer::ScopedTimer |
( |
double & | sink | ) |
|
|
inlineexplicit |
◆ ScopedTimer() [2/3]
| DiFfRG::ScopedTimer::ScopedTimer |
( |
double * | sink | ) |
|
|
inlineexplicit |
A null sink measures nothing, for call paths that may run without a timing target.
◆ ~ScopedTimer()
| DiFfRG::ScopedTimer::~ScopedTimer |
( |
| ) |
|
|
inline |
◆ ScopedTimer() [3/3]
| DiFfRG::ScopedTimer::ScopedTimer |
( |
const ScopedTimer & | | ) |
|
|
delete |
◆ operator=()
◆ stop()
| void DiFfRG::ScopedTimer::stop |
( |
| ) |
|
|
inline |
Charge the elapsed time now instead of at scope exit. Idempotent.
◆ sink
| double* DiFfRG::ScopedTimer::sink |
|
private |
◆ start
| std::chrono::steady_clock::time_point DiFfRG::ScopedTimer::start |
|
private |
The documentation for this class was generated from the following file:
- /home/runner/work/DiFfRG_current/DiFfRG_current/DiFfRG/include/DiFfRG/discretization/data/output_timings.hh