#include <MTAStat.h>
|
| const char * | name |
| const bool | enabled |
| std::chrono::steady_clock::time_point | start |
Definition at line 51 of file MTAStat.h.
◆ ScopedPhaseTimer()
| SVF::ScopedPhaseTimer::ScopedPhaseTimer |
( |
const char * | phaseName | ) |
|
|
inlineexplicit |
Definition at line 54 of file MTAStat.h.
57 : std::chrono::steady_clock::time_point())
58 {
60 {
63 }
64 }
std::chrono::steady_clock::time_point start
std::ostream & outs()
Overwrite llvm::outs().
◆ ~ScopedPhaseTimer()
| SVF::ScopedPhaseTimer::~ScopedPhaseTimer |
( |
| ) |
|
|
inline |
Definition at line 66 of file MTAStat.h.
67 {
69 return;
70
71 const auto end = std::chrono::steady_clock::now();
72 const double milliseconds =
73 std::chrono::duration_cast<std::chrono::duration<double, std::milli>>(
75 std::ostringstream elapsed;
76 elapsed << std::fixed << std::setprecision(2) << milliseconds << " ms";
77 if (milliseconds >= 1000.0)
78 elapsed << " (" << std::fixed << std::setprecision(2)
79 << (milliseconds / 1000.0) << " s)";
81 << elapsed.str() << "\n";
83 }
◆ enabled
| const bool SVF::ScopedPhaseTimer::enabled |
|
private |
◆ name
| const char* SVF::ScopedPhaseTimer::name |
|
private |
◆ start
| std::chrono::steady_clock::time_point SVF::ScopedPhaseTimer::start |
|
private |
The documentation for this class was generated from the following file:
- /home/runner/work/SVF/SVF/svf/include/MTA/MTAStat.h