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