Definition at line 229 of file doxygen.cpp.
◆ Statistics()
| Statistics::Statistics |
( |
| ) |
|
|
inline |
◆ begin()
| void Statistics::begin |
( |
const char * | name | ) |
|
|
inline |
Definition at line 233 of file doxygen.cpp.
234 {
236 stats.emplace_back(name,0);
237 startTime = std::chrono::steady_clock::now();
238 }
std::vector< stat > stats
std::chrono::steady_clock::time_point startTime
References msg, startTime, and stats.
◆ end()
Definition at line 239 of file doxygen.cpp.
240 {
241 std::chrono::steady_clock::time_point endTime = std::chrono::steady_clock::now();
242 stats.back().elapsed =
static_cast<double>(std::chrono::duration_cast<
243 std::chrono::microseconds>(endTime -
startTime).count())/1000000.0;
245 }
References startTime, stats, and warn_flush().
◆ print()
| void Statistics::print |
( |
| ) |
|
|
inline |
◆ startTime
| std::chrono::steady_clock::time_point Statistics::startTime |
|
private |
◆ stats
| std::vector<stat> Statistics::stats |
|
private |
The documentation for this class was generated from the following file: