Definition at line 228 of file doxygen.cpp.
◆ Statistics()
Statistics::Statistics |
( |
| ) |
|
|
inline |
◆ begin()
void Statistics::begin |
( |
const char * | name | ) |
|
|
inline |
Definition at line 232 of file doxygen.cpp.
233 {
235 stats.emplace_back(name,0);
236 startTime = std::chrono::steady_clock::now();
237 }
std::vector< stat > stats
std::chrono::steady_clock::time_point startTime
References msg, startTime, and stats.
◆ end()
Definition at line 238 of file doxygen.cpp.
239 {
240 std::chrono::steady_clock::time_point endTime = std::chrono::steady_clock::now();
241 stats.back().elapsed =
static_cast<double>(std::chrono::duration_cast<
242 std::chrono::microseconds>(endTime -
startTime).count())/1000000.0;
244 }
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: